I’m trying to build report using jasper has it’s recommended on the forum. It seams that some people succeded in using it, but all I’ve been able to get is “The document has no pages.”
I’ve raise the debug level of servoy to “trace” so that I can follow in servoy log what it’s doing, and everyhting seams to work well. Except that all pdf or view generated are empty.
I’ve been using two different .jrxml that I tested in iReport and they are working fine in iReport. They are not using any database connection just static text. So no error possible from there.
You can fin dthese example here:
here is the code i’m using to launch jasperRepport
plugins.jasperPluginRMI.reportDirectory = plugins.file.getDesktopFolder();
var _file = plugins.http.getMediaData("media:///StyledTextReport.jrxml") ;
var _path = plugins.file.getDesktopFolder() + "/StyledTextReport.jrxml";
plugins.file.writeFile(_path, _file);
plugins.jasperPluginRMI.jasperReport('equipmtl_intranet',_path,null,'view',null);
Thank you for your time!
Philippe Beaulieu