Thanks Andrew
We have changed our procedure to render a report.
Now we have separates template and origin data.
As I read the document I come up with this way :
reading data (an object)
and loading template by this approach:
our template is a json
and render the report by this code :
Code: Select all
export function renderSt(data, template) {
var report = new window.Stimulsoft.Report.StiReport();
report.load(template);
var options = new window.Stimulsoft.Viewer.StiViewerOptions();
options.appearance.showTooltips = false;
options.toolbar.showPrintButton = false;
var viewer = new window.Stimulsoft.Viewer.StiViewer(
options,
"StiViewer",
false
);
var dataSet = new window.Stimulsoft.System.Data.DataSet("SimpleDataSet");
dataSet.readJson(data);
report.regData(dataSet.dataSetName, "", dataSet);
viewer.report = report;
viewer.renderHtml("viewer");
As a sample, a report with 600 pages takes 120 seconds to render.
Is there a better way to reduce this time? for instance, using XML or XSD format?
I have attached my template Json in the case you need to check.
Best regards