Standard Reports: Difference between revisions

From Commander4j
No edit summary
No edit summary
Line 8: Line 8:


The safest approach is to make a duplicate of the report which you want to modify and work on a renamed version of the file. When your happy with the changed you can copy the new report.
The safest approach is to make a duplicate of the report which you want to modify and work on a renamed version of the file. When your happy with the changed you can copy the new report.
Note that the "source" or report definition is held in a file called .jrxml and when you have completed your changes you will need to compile the report within JasperSoft Studio, then copy back both the .jrxml and .jasper files into your reports folder.


To allow the application to run your new modified report instead of the original you will need to alter the appropriate report definition in the [[Modules]] screen
To allow the application to run your new modified report instead of the original you will need to alter the appropriate report definition in the [[Modules]] screen

Revision as of 09:14, 22 August 2024

Commander4j comes with a great many "Standard" reports which can be accessed via the "Print" button on many of it's screens.

These reports are created using a 3rd party library called Jaspersoft community edition

You can modify this reports if you use a application called JasperSoft Studio JasperSoft Studio.

All the reports can be found in the "Reports" folder. See Folder Structure. Make a copy of this folder and work on the copy.

The safest approach is to make a duplicate of the report which you want to modify and work on a renamed version of the file. When your happy with the changed you can copy the new report.

Note that the "source" or report definition is held in a file called .jrxml and when you have completed your changes you will need to compile the report within JasperSoft Studio, then copy back both the .jrxml and .jasper files into your reports folder.

To allow the application to run your new modified report instead of the original you will need to alter the appropriate report definition in the Modules screen