A report can be sent to the printer directly from code, without the viewer. This example renders a report and prints it as soon as it is ready.

Printing from code. Load and render the report, apply the printer settings, and start the print workflow from application code.
var report = new Stimulsoft.Report.StiReport();
report.loadFile("../reports/SimpleList.mrt");

report.renderAsync(function () {
    report.print();
});
report.print() opens the browser's print dialog for the rendered document. Because it is called inside the renderAsync callback, the report is guaranteed to be fully rendered before printing starts.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.