iReport Ultimate Guide - Nimsoft Library

iReport Ultimate Guide - Nimsoft Library iReport Ultimate Guide - Nimsoft Library

13.07.2015 Views

iReport Ultimate Guide11. Save the template.12. Close the report.To apply styles from a JRTX file:1. Open the report that will use the styles.2. In the Report Inspector, right-click Styles and select Add → Style reference.3. In the file window that opens, select the template file.The template’s styles should now appear in the Report Inspector.4. Apply the styles to the report.5. Save the report.136

TemplatesCHAPTER 9TEMPLATESOne of the most useful tools of iReport is the Template Chooser (Figure 9-1), from which the user can pick a template, a kindof pre-built report. Templates can be used as the base for new reports with no further changes, and they can be used as a modelto which fields, textfields and groups can be added in the Report Wizard.Figure 9-1Template chooserWhen the Template Chooser pops up, it scans the directory /ireport/templates, looking for JRXML files. Inaddition, all the paths specified in the options as template directories or as template files are scanned in the same way. Thevalid JRXML files found are proposed as possible templates. If a template provides a preview image, it is used in the filechooser.137

<strong>iReport</strong> <strong>Ultimate</strong> <strong>Guide</strong>11. Save the template.12. Close the report.To apply styles from a JRTX file:1. Open the report that will use the styles.2. In the Report Inspector, right-click Styles and select Add → Style reference.3. In the file window that opens, select the template file.The template’s styles should now appear in the Report Inspector.4. Apply the styles to the report.5. Save the report.136

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!