Simple functions and partial operations of ireport reports

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.