How can .mdc files be generated from the code?
My input data is in the form of .xml (or whatever form), how can I build a .mdc file in runtime to pass it to my report?
How to generate .mdc files?
How to generate .mdc files?
Hello,
You can use the following code to generate the report:
Thank you.
You can use the following code to generate the report:
Code: Select all
var report: StiReport = new StiReport();
report.loadReportFromString(reportStr); // Load report template, also you can use other methods for load report
report.addEventListener(StiReportEvent.END_RENDER, onRenderComplete);
report.render();
...
private function onRenderComplete(event: StiReportEvent): void
{
var document: String = event.report.saveDocumentToString();
...
}
Thank you.