Page 1 of 1

Rendering Question

Posted: Mon Apr 28, 2014 5:12 pm
by jevans
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.

Re: Rendering Question

Posted: Fri May 02, 2014 11:06 am
by HighAley
Hello.

Please, send us a sample project which reproduces the issue for analysis.

Thank you.

Re: Rendering Question

Posted: Fri May 02, 2014 5:27 pm
by jevans
If you need more than the mrt and xml I can post more.

Re: Rendering Question

Posted: Sat May 03, 2014 9:46 am
by HighAley
Hello.

You report renders right. Please, try to add next line before Render

Code: Select all

tempReport.dictionary.synchronize();
tempReport.render(false);
Thank you.

Re: Rendering Question

Posted: Tue May 27, 2014 11:44 pm
by jevans
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

Posted: Wed May 28, 2014 11:53 am
by Alex K.
Hello,

You can find the information about changes on the following page:
http://www.stimulsoft.com/en/changes/reports-fx-java

Thank you.