Once you've created a template for PIR, you must follow the below process to deploy it to the Interactive Reporting plugin.
- Shut down the Pentaho Server if it is currently running.
- Create an icon for your template, in PNG format, with the same name as the template file. The size of the icon doesn't matter; PIR will scale it to fit the correct dimensions. However, you can avoid unusual scaling issues by creating a square-shaped (equal width and height) graphic. If you'd like further guidance, take a look at the default template icons that Pentaho provides in the templates directory.
- Copy the icon and the PRPT template files to the /pentaho-solutions/system/pentaho-interactive-reporting/resources/templates/ directory.
- Edit the /pentaho-solutions/system/pentaho-interactive-reporting/resources/messages/messages.properties file and add a new line for your template with the template_ prefix, the name of your template file, and a friendly name for the template as you'd like it to appear in the PIR interface, as in the following example (given a template filename of template_demo.prpt):
Your template is now deployed to Pentaho Interactive Reporting.