Printing the Report
Our sample projects and report templates can help you learn the basics of working with our products.This example shows how to load the report template and print it from code. You need to create the report object of the
In the screenshot below you can see the result of the sample code:

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 and print it by calling the print() method. The system print dialog should appear:
<script type="text/javascript">
// Create a new report instance
var report = new Stimulsoft.Report.StiReport();
// Load report from url
report.loadFile("../reports/SimpleList.mrt");
// Render report
report.renderAsync(function () {
// Print report using web browser
report.print();
document.write("Complete.");
});
</script>In the screenshot below you can see the result of the sample code:
