FAQ


Frequently asked questions

On these pages you will find suggestions for solutions to various typical problems in the field of Jaspersoft Business Intelligence. As a trainer for methods and tools, I often come across similar questions in my seminars. Some of these questions are asked particularly frequently. I would like to take up the most interesting ones below and provide you with my solutions.

1JRXML reports - Is it possible to align “Page X of Y” to the right margin of the report?
Page numbering for your JRXML reports can be quickly inserted into the report with iReport via drag & drop. Text fields are inserted into the report and the variable ${PAGE_NUMBER} is used. Because two text fields are used, it is not possible to right-align the text - regardless of the number of pages.
2Jasperreports Server, iReport, Jaspersoft Studio - When uploading my JRXML reports to the Jasperreports Server, file paths are always replaced. How can I prevent this?
You don't want to prevent that! The Jasperreports Server does not load external resources from the file system and therefore requires a different syntax than when executing a report locally in iReport or Jaspersoft Studio. Even when using a variable ${SUBREPORT_DIR} for file paths, the problem still exists.
3JRXML charts, JFreeChart - How can I display trend lines or threshold values in my charts?
Diagrams from the JFreeChart library can be quickly configured with iReport and used in a JRXML report. In practical use, however, there are often further requirements for the diagram display. In many cases, iReport's on-board tools for chart configuration are no longer sufficient to cover the special requirements. The diagrams of the JFreeChart library can do far more than can be set in iReport! If threshold lines or trends are to be displayed in the chart, this causes problems.
4Jasperreports Server, Webservices - I would like to run and download a report on the Jasperreports Server. How can I do this?
In many companies, the Jasperreports server is only partially used as a central repository and the only way to access reports. Often the reports should also be created and displayed from a separate application. Instead of managing the reports in different storage locations and integrating the functionality of the Jasperreports library into your own application, it is a good idea to access all the important functions of the Jasperreports Server via a web service. A typical requirement is, for example, the remote execution and subsequent download of a JRXML report. You can derive almost all other use cases for server access via web services from this example implementation.
5JRXML diagrams - What can I use “Multiaxis diagrams” for?
Diagrams are used in particular for the qualitative representation of large amounts of data. The data is highly condensed beforehand in order to pack a lot of information into the comparatively small space required by a diagram. It is also not uncommon to want to compare two or more data sources within a diagram for better comparability.
6Jasperreports Server, file data sources - How can I use CSV, XLS and XML data sources in Jasperreports Server?
In iReport or Jaspersoft Studio I have developed a JRXML report based on a file data source. Now I want to make the report available to everyone and make it available on the Jasperreports server. But I can't find a way to set up a file as a data source for the report...
7JRXML reports - How do I add a table of contents to my JRXML report?
iReport or Jaspersoft Studio is often used when you want to replace the regular, manual creation of reports with an automated process. In most cases, the report is then compiled with all the associated problems in Word, Excel or a similar word processor. With Jasperreports, essential and time-consuming steps are automated, you no longer need to worry about data provision and formatting problems are a thing of the past. Unfortunately, iReport or Jaspersoft Studio do not offer a simple way of inserting a table of contents into the report, as you would in a Word document, for example.
8JRXML reports - What (the hell) is the “Generic Element” for?
Have you ever asked yourself this question? This report element offers powerful possibilities for supplementing the JRXML design tools iReport or Jaspersoft Studio with your very own additional functionality.