ireport Export PDF (ii)

Source: Internet
Author: User

The previous text has a preliminary introduction of some basic use of ireport, the following began to detail how to use ireport, which has a lot of strange pits, such as Chinese fonts do not display, print out the font only the song body,

Here's an example of how to write a diagram:

1. On the right component, drag the static text component to the edit area, static text is write fixed, not live data, the property on the right can modify the font and font size,


Property text can set the contents of the textbox, font name sets the font type, because there is no custom font now regardless of the font selected in Chinese or not display or only display arial, size set font sizes, the following said the most important three properties, otherwise Chinese will not display the PDF font name Select the Stsong-light attribute PDF Embedded Tick, PDF Encoding is set to Unigb-ucs2-h (Chinese Simplified) So Chinese will be displayed as Arial, but if you want to display as a different font such as bold, you need to customize , I'll introduce you later.

2. Drag the database read-out field from field to the edit area, the property setting is similar to the one above, there is a property blank when null false text does not have the latter, click can be a null tick will not be displayed.

3. The Use of table components is described below

(1) Table components must be placed in the detail area, otherwise the line will not be repeated, if not put into the detail if the two rows of data will only display a row,

(2) Drag the component to the detail area,


(3) Click Next


(4) Click Finish, the X effect chart is as follows


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.