Jasper Report does not use PDF file extension

485 views
Skip to first unread message

blacklevel

unread,
Feb 10, 2013, 5:32:09 PM2/10/13
to idem...@googlegroups.com
Hi there,

when integrating a Jasper Report, e.g. for a Standard Order, the resulting output file always has the suffix ".jrxml" or ".jasper", depending on which filename is entered in the field "Jasper Report" in the "Report Process" window.  The resulting file as such is fine. Internally it is a regular PDF file as it should be. This is when using the ZK interface.

Is there a way to bring iDempiere to use ".pdf" as the default file suffix?

Thanks
Michael

Carlos Antonio Ruiz Gomez

unread,
Feb 11, 2013, 9:59:56 AM2/11/13
to idem...@googlegroups.com
Hi Michael, just tested on demo.idempiere.com and it's working fine.

You can check the menu entries "Test jasper" and "Test jrxml"

Regards,

Carlos Ruiz

blacklevel

unread,
Feb 11, 2013, 11:50:39 AM2/11/13
to idem...@googlegroups.com
Hi Carlos,

thank you for taking the time to verify this. 

This is curious. I just checked the two menu entries on demo.idempiere.com. I can still reproduce the problem on my client.
  • Menu "Test jasper" prompts for file name "Test jasper - attachment-PruebaOSGi.jasper"
  • Menu "Test jrxml"   prompts for file name "Test jrxml - attachment-PruebaOSGi.jrxml"
Both files are valid PDF files and look identical. I tested this on Ubuntu 12.10 with two different web browsers. 
  1. Version 24.0.1312.56 Ubuntu 12.10 (24.0.1312.56-0ubuntu0.12.10.3)
  2. Firefox 18.0.2
So, since it works for you as intended, this looks as if it is client related. Maybe a ZK issue on Ubuntu?

While writing this I just checked with my other notebook with Arch Linux on it. The Chromium Version ist slightly different (24.0.1312.69 (180721)), but the problem there is identical. Hmm.

Best regards
Michael

Carlos Antonio Ruiz Gomez

unread,
Feb 11, 2013, 1:11:06 PM2/11/13
to idem...@googlegroups.com
Michael, I did more tests with strange results, maybe this can lead you to a conclusion about:

Ubuntu 12.04 (with acroread)
* firefox 18.0.2 (opened pdf plugin)
* chrome 24.0.1312.69 (opened internal pdf viewer)
* opera 12.14 (opened acroread)

Windows 7 (no acroread installed)
* firefox 15.0.1 (asked to save the file with extension .jasper)
* IE 8.0.7600.16385 (ask to save the file with extension .jasper)
* chrome 24.0.1312.57 m (opened internal pdf viewer)
* opera 12.02 (asked to save the file with extension .pdf)

I think the behavior you're finding seems related to my tests on windows+firefox/IE - it's trying to save a file with name: "Test jasper - attachment_PruebaOSGi.jasper"

But I found very strange that opera on windows saved the same file with name "PruebaOSGi.pdf"


Regards,

Carlos Ruiz

blacklevel

unread,
Feb 11, 2013, 3:12:04 PM2/11/13
to idem...@googlegroups.com
Hi Carlos,

currently I do not have Acroread installed. I try later if that changes anything. There is one other interesting thing: after "printing" the initial PDF -- the one with the wrong suffix -- the combo box in the new tab   which lists the four possible file types/extensions (PDF, HTML, Excel, CSV) works perferctly. 

Steps to reproduce:

* Execute process "Test jasper"
* iDempiere prompts to save "Test jasper - attachment-PruebaOSGi.jasper"
* Select "HTML" in combo box (HTML is shown)
* Select "PDF" in combo box
* iDempiere prompts to save "reportFrame.pdf"

This suggests that there may be two different procedures which construct the filename which is shown for download. The second method seems to be more robust with regard to the filename extension.

Best regards
Michael
Reply all
Reply to author
Forward
0 new messages