iReport4.1.3
1, for table-type report operations.
Merge Cell
1), select the cells you want to merge, right-click Group selected columns, and automatically create an empty group header
2), right-click on the empty group header, Select Add cell, just add once to
3), and then delete the unwanted cells
2, get the total number of records and the current number of pages
$V {Page_number} indicates the current page, in the text field Option evaluation time the report is a total of several pages, the now table is the current page.
3, IReport processing PDF Chinese garbled
First: Make sure that \jaspersoft\ireport-nb-3.6.0\platform7\lib below has Itextasian.jar package, if not, you need to add it.
Click Tools-------> Options
Note: This step is completed and will not take effect until it is restarted.
Second: Select the element box that contains the Chinese characters, edit its PDF Pont Name property and the PDF encoding property, and set the PDF Pont name to Stsong-light,pdf Encoding is set to: Unigb-ucs2-h (Chinese simple). This is done by setting the individual elements. You can also define a global style, and then apply the style to the selected element. That can be set in styles inside the report Properties Management Section. Then select the reference for the element that you want to apply the style to.
4, ireport set the replacement of the introduction parameter Select the entire table, right-click Edit Table DataSource, set in parameter.
5. The data source problem of table is handled in ireport. When used, if using Tabel, the data source is only set to be introduced on the table. However, if the property set on the entire file language wrong, it will come up with a no pages problem. So Language=java must be set.
6, the overall setting is normal, the data source at query can also find the data, but the resulting report column value is null. Cause: You need to set DataSource to use connection exception