Rendering Question

Stimulsoft Reports.Flex discussion
Locked
jevans
Posts: 9
Joined: Mon Sep 24, 2012 9:05 pm

Rendering Question

Post 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.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rendering Question

Post by HighAley »

Hello.

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

Thank you.
jevans
Posts: 9
Joined: Mon Sep 24, 2012 9:05 pm

Re: Rendering Question

Post by jevans »

If you need more than the mrt and xml I can post more.
Attachments
Game_Play_by_Play_Report.zip
(12.79 KiB) Downloaded 223 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Rendering Question

Post 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.
jevans
Posts: 9
Joined: Mon Sep 24, 2012 9:05 pm

Re: Rendering Question

Post 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?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Rendering Question

Post 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.
Locked