I created a jasper report and generated it through my servoy application. Through the jasper viewer I am able to save the report in any format, including xls, when running the application on my machine.
However, when I run the same application on the server I am not able to save the report in xls format. I am still able to save in any of the other available formats, except for xls. I get the file save dialog as usual, which closes on giving a file name and pressing save. However the file is no where to be found!
Does anyone have an idea as to why this only affects xls format?
I have the same problem after upgrading the jasperreports.jar to v3.1.4 and afterwards also after upgrade to jasperreports-3.5.0.jar.
I filed a case concerning this problem at 25-03 but up to now no reaction.
A second problem I discovered : when setting the report-script-language to Javascript the report won’t run or throws an error when called from Servoy.
I can confirm that an xls file is not created when running the servoy plugin from the server. It does work fine in developer.
I think it must be something to do with the server not knowing where to place the file - something different anyway compared to developer.
I will raise the issue on the Google code site for the servoy plugin (since I added that piece of functionality).
UPDATE:
On the server:
I did some more testing and found that if the report is sent to the viewer and then the user selects XLS then the output is NOT created.
However when I sent the report to the Servoy plugin with an output type of xls then it DOES produce the XLS file in the specified directory.
So this seems an issue more to do with the version of the Jasper Reports than the servoy plugin.
Check again that the string to specify the output file type is “xls”.
I tried the way you suggested by giving the extension xls in the coding itself. It does not work even in developer. It gives the message “Undefined Format”.
It saved ok for pdf and html formats. Additionally, you have to give the save path in the coding.
Any ideas?
Hi,
I downloaded the latest plugin as you suggested and then tried, but ended up getting the same “undefined format” error. So I used the ‘excel’ extension instead of ‘xls’ and then it worked. I was able to download in xls format from the server. However the excel that got saved was blank!!!