Hi,
Sorry to tag on to this post, but my question is fairly relevant. We're calling our Jasper Reports like so:
- Code: Select all
plugins.jasperPluginRMI.runReport( goFieldsDS, sJasperTemplate, null, plugins.jasperPluginRMI.OUTPUT_FORMAT.PDF, oParams );
Where sJasperTemplate is set to the .jrxml file name.
I tried adding the .jasper file to the storage folder and removing the .jrxml file, however I'm just getting a "report.jrxml file is not found" error.
According to what Robert alluded to above, and the docs (
https://github.com/Servoy/servoy_jasper ... he-plug-in), the second parameter, the sJasperTemplate in our case:
1. Name of report (“rptName.jrxml” OR “rptName.jasper”)
2. If a jrxml file is supplied, it will run the .jasper file first; if the .jasper file does not exist, it will try to compile the report into memory.
So I was expecting the .jasper file to be used, even though we're pointing to a .jrxml file. Or perhaps I'm misunderstanding the instructions. I will try pointing to the .jasper file name, however that will have to wait until our next release. So thought I would ask here first.
Thanks.