Loading the Report
Unsere Beispiele der Projekte und Berichtsvorlagen helfen Ihnen, die Grundlagen der Arbeit mit unserer Software zu erlernen.This example shows how to load the report template and render it from code. You need to create the report object of the
Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen:

StiReport type, then load the report template file by calling the loadFile() method. After this, you can render the report by calling the renderAsync() method of the report object:
<script type="text/javascript">
// Create a new report instance
var report = new Stimulsoft.Report.StiReport();
// Load report
report.loadFile("../reports/SimpleList.mrt");
// Render report
report.renderAsync(function () {
document.write("Complete.<br>");
document.write("Rendered page count: " + report.renderedPages.count);
});
</script>Auf dem Screenshot unten Sie können das Ergebnis des Beispiel-Codes ansehen:
