We were using version 2012.11.30, upgraded to 2014.1.1900 and our report exporting doesn't work anymore. Here's how we were doing it:
currentReport=new GamePlayByPlayReport();
byteArray=currentReport.getReportDefinition();
dataXML=currentReport.createXML(_preferences, game, extraData, -1);
tempReport = new StiReport();
tempReport.loadReportFromByteArray(byteArray);
tempReport.dictionary.databases.clear();
tempReport.regData("Game Play by Play","Game Play by Play",dataXML);
tempReport.render(false);
var service: StiHtmlExportService = new StiHtmlExportService();
var settings: StiHtmlExportSettings = new StiHtmlExportSettings();
var buffer: ByteArray = new ByteArray();
service.exportHtml(tempReport, buffer, settings);
var theFile:String = buffer.toString();
I tried looking into what is happening, after the render tempReport.isRendered is false, and the rendered pages length is 1, and an empty page.
Rendering Question
Re: Rendering Question
Hello.
Please, send us a sample project which reproduces the issue for analysis.
Thank you.
Please, send us a sample project which reproduces the issue for analysis.
Thank you.
Re: Rendering Question
If you need more than the mrt and xml I can post more.
- Attachments
-
- Game_Play_by_Play_Report.zip
- (12.79 KiB) Downloaded 241 times
Re: Rendering Question
Hello.
You report renders right. Please, try to add next line before Render
Thank you.
You report renders right. Please, try to add next line before Render
Code: Select all
tempReport.dictionary.synchronize();
tempReport.render(false);
Re: Rendering Question
Turns the report was not yet rendered before attempting export. We got it working now using a RENDER_COMPLETE_EVENT complete handler to start the export. The version we where using was a 2012 build, is threading a new feature since then?
Re: Rendering Question
Hello,
You can find the information about changes on the following page:
http://www.stimulsoft.com/en/changes/reports-fx-java
Thank you.
You can find the information about changes on the following page:
http://www.stimulsoft.com/en/changes/reports-fx-java
Thank you.