Jasper Report does not allow to Change Print Format or Language
Description
Environment
Attachments
Activity
Peter Takacs March 17, 2024 at 3:41 PM
Hi , thanks now it looks good to me.

Heng Sin Low March 17, 2024 at 11:43 AM
hi , thanks for the testing, fix pushed.
Peter Takacs March 17, 2024 at 8:33 AM
The fixes looks good, tested again and found a problematic use case I haven’t noticed earlier:
given that the PurchaseOrder jasper is set on the Order Header print format
open Purchase Order and press the print button (should open the jasper report)
change to another print format (Order_Header ** TEMPLATE ** should be there)
change back to Order Header
throws an exception
and also:

Heng Sin Low March 17, 2024 at 5:06 AM
Fix push for the excel format issue. For row count since the value return from Jasper Report process is inaccurate and it is not important for the print document use case, I’ve hide it for Jasper Report print format instead.
Peter Takacs March 17, 2024 at 12:41 AMEdited
Hi , thanks for implementing this. I’ve tested the Order Header print format with your jasper report, and noticed two things:
if I select xls, or xlsx → preview, I get the following error:
java.lang.IllegalArgumentException: Invalid char (:) found at index (6) in sheet name 'Report: Order Header'
- not sure what causes thisif I download the xls report, excel is able to open it but it also gives an error message
looks like it wants to name the file as
Report: Order Header.xls
and ':' is not allowed?
this is probably a minor one, not a blocker, just noticed that when you first open the report through the print button, the row count in the bottom right is not displayed until you change the report type e.g. to HTML
By opening a standard report (e.g. when printing an invoice through the print toolbar button), the report viewer allows us tho switch between print formats. If there is a jasper print format (jasper process set on a print format) defined, it also allows us to switch to that jasper print format and eventually change its language too.
However, if the jasper print format is set on our document type (e.g. AR Invoice), or in Print Form (Invoice Print Format field), then by e.g. printing out an AR Invoice takes us directly to the jasper viewer, which does not allow switching between print formats or changing the language.
Printing non-jasper print format (here I can also swith to a jasper print format):
Printing a jasper print format (no print format and language dropdowns):
This is a UX limitation that should be improved and fixed.
A dummy jasper process for invoices is attached to the ticket below for testing purposes.