iReport Ultimate Guide - Nimsoft Library

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

13.07.2015 Views

iReport Ultimate Guide9. The last screen of the wizard will appear, and it will tell you the outcome of the operation. Click Finish to create thereport, which will appear in the iReport central area, ready to be generated, as shown below.10. Click the Preview button to see the final result.When you click Preview, iReport compiles the report, generating the JASPER file and executing the report against thespecified data source. You can track the progress in the output window, which is below the main window.If, for some reason, the execution fails, you can see a set of problems in the Report Problems window, and other error trackinginformation (for example, a full stack trace) in the iReport output window.In this example, everything should work just fine, and you should see the report in the preview as shown above (Figure 2-19).Also note:• You can save the report by clicking on the disk icon in the window tool bar. iReport can save reports in several formats,including PDF and HTML.• To automatically export the report in a particular format and run the appropriate viewer application, select a format fromthe Preview menu.• To run the report again from the preview window, click the Reload button in the preview tool bar, or, if you change thereport design, save the design and click Preview.30

Basic Notions of iReportCHAPTER 3BASIC NOTIONS OF iREPORTThis chapter has the following sections:• The Report Life Cycle• JRXML Sources and Jasper Files• Data Sources and Print Formats• Compatibility Between Versions• Expressions• Using Java as a Language for Expressions• Using Groovy as a Language for Expressions• Using JavaScript as a Language for Expressions• A Simple Program3.1 The Report Life CycleWhen we think about a report, only the final document comes to mind, such as a PDF or Excel file. But this is only the finalstage of a report lifecycle, which starts with the report design. Designing a report means creating some sort of template, suchas a form where we leave blank space that can be filled with data. Some portions of a page defined in this way are reused,others stretch to fit the content, and so on.31

<strong>iReport</strong> <strong>Ultimate</strong> <strong>Guide</strong>9. The last screen of the wizard will appear, and it will tell you the outcome of the operation. Click Finish to create thereport, which will appear in the <strong>iReport</strong> central area, ready to be generated, as shown below.10. Click the Preview button to see the final result.When you click Preview, <strong>iReport</strong> compiles the report, generating the JASPER file and executing the report against thespecified data source. You can track the progress in the output window, which is below the main window.If, for some reason, the execution fails, you can see a set of problems in the Report Problems window, and other error trackinginformation (for example, a full stack trace) in the <strong>iReport</strong> output window.In this example, everything should work just fine, and you should see the report in the preview as shown above (Figure 2-19).Also note:• You can save the report by clicking on the disk icon in the window tool bar. <strong>iReport</strong> can save reports in several formats,including PDF and HTML.• To automatically export the report in a particular format and run the appropriate viewer application, select a format fromthe Preview menu.• To run the report again from the preview window, click the Reload button in the preview tool bar, or, if you change thereport design, save the design and click Preview.30

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

Saved successfully!

Ooh no, something went wrong!