Question

I'm pretty new to JasperReports, Jaspersoft Studio, and JasperServer but I've got a JasperServer instance up and running and have been using it to create reports from Ad Hoc views. This works well but I'd like to make some report templates so that reports run from JasperServer can have branded headers/footers etc.

I worked through this tutorial and was able to create what I thought was a fine template but when I try export it as a JasperServer template I get all sorts of validation warnings and indeed trying to run reports using it from the server results in errors.

Here's an example of the warnings I'm seeing:

The style ChartValueAxisTickFormat was not found in the template

And the errors I get on the server when trying to use these templates look like those described here. I have tried using templates without any text fields or variables though. In fact, the unexpected tokens it complains about are usually actual field ids... do I need to anticipate the fields that would be used when creating a template? Wouldn't this defeat the purpose of having templates for reports created from ad hoc views?

Anyway, there's quite a lot of information out there around creating templates for Jaspersoft Studio (iReport) reports but not a whole lot on templates for JasperServer reports.

It seems like there's something fundamental about templates for JasperServer reports that I'm missing. I'd appreciate any help with either the issues I am describing or being pointed toward better documentation for creating these templates specifically.

Edit:

I'm using Jasper Studio Profession 5.5.0.final on the desktop and a Jaspersoft BI Professional for AWS 5.5 instance as the server.

Was it helpful?

Solution

Report Template as in tutorial you have linked are for Jaspersoft Studio / static reports only. Adhoc templates are different types of objects which are described here

OTHER TIPS

I have encountered the same errors, and I have solved it by simply adding a styles to my report, in other words:

  • In the outline of your report, Right click on Style -> create Style, then just change the name of the style by each name of missing styles apperead (for example, ChartValueAxisTickFormat).

Styles

  • After creation of 55 styles in your report template in jasper Soft Studio, save the report, then export it as report template.

I hope this will help you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top