Hi Every One,
I have a problem with jasper reports again. I am trying to save a report in text format. But unfortunately the file created is empty (not data filled). When i saved the same report to another format such as pdf, csv, xls etc. it works fine.
I am using jasper report version 3.1_b3 and the code i used as follows.
plugins.jasperPluginRMI.runReport(_server_name,report_template,_save_report_name,_saveAsType,_params);
Any help would be grateful.
Best Regards,
Buddhika
Buddhika,
Did you check the logs?
/path/to/servoy/application_server/servoy_log.txt and /path/to/servoy_workspace/.meta/.log
Rob
If you specify the report type as viewer and then when the viewer opens:
- Is there text visible? (I assume yes since you save ok to pdf)
- are you able to save the file as text only from the Jasperreport menu?
I use this method to see if I have text for testing and then change to specify the end report type.
Hi All,
Thanks for all your time put in this issue.
I have checked the servoy log and there was this message.
2010-11-18 13:39:35,908 WARN [AWT-EventQueue-0] net.sf.jasperreports.engine.xml.JRBandFactory - The ‘isSplitAllowed’ attribute is deprecated. Use the ‘splitType’ attribute instead.
Is this be fixed by my query for the report or is it a problem of the plugin, where using an depricated method.
Once again thanks for your assistance and wait hope you can help me further.
Best Regards,
Amal.
The split is a JasperReport functionality. Please change your iReport report to conform to the message! You must be using a report made with an older iReport/Jasperreport.
Amal,
This message is just a warning about deprecated api, it should not break the report.
Something else must be going on.
Maybe you can try a very simple report, export to text, and add features until it breaks again.
Rob