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