Creating a Custom Report Template in iReport

iReport designer is a tool to make Jasper reports. Lot of us use default templates for creating reports. We might have barely noticed that custom report template is also available. In this blog we will walk you through on “How to create a custom report template in iReport”.

A report template is a predefined style/layout which we can use to create reports. A report template can help report designers to maintain a standard format for reports with pre defined styles and reduce the development time. Report template can also help in keeping consistency among report designs. These templates can be reused to create few standard report like invoice report, work orders and different statements (income, profit & loss etc). By using these templates we can have most of our report formatting complete even before we start developing the report. This saves a lot of time for a report author/developer. iReport gives users an option to choose from various ready to use templates. When a user selects to create a new report a prompt with predefined template is displayed, the user can either choose a new report or an existing template as shown in the below screenshot.

We can add these custom templates to the repository as per our convenience. Please follow the following steps to add report template to the new file editor page.
Step 1:
Go to Tools → Options and select iReport → Wizard Templates

Step 2:
Now we can add a report template by clicking on Add Jrxml. A report template is just a simple jrxml report with predefined styles, fonts and report bands.

Now we can choose any existing jrxml from our machine which needs to be added in the report template repository.

Step 3:
Once the report is added to the Wizard Templates, we can see the template in the template chooser window while creating new reports and the template will be available for the report authors to use.

2 thoughts on “Creating a Custom Report Template in iReport

  • Having read this I thought it was extremely informative. I appreciate you taking the time and effort to put this informative article together. I once again find myself personally spending a lot of time both reading and leaving comments. But so what, it was still worthwhile!

Leave a Reply

Your email address will not be published. Required fields are marked *