A dashboard can be sent to the printer straight from code — as PDF or as HTML.

In Angular.
@Component({
    template: `
        <button (click)="printPdf_Click()">Print PDF</button>
        <button (click)="printHtml_Click()">Print HTML</button>`
})
export class Example {
    report: Stimulsoft.Report.StiReport;

    printPdf_Click()  { this.report.printToPdf(); }
    printHtml_Click() { this.report.print(); }

    constructor() {
        this.report = new Stimulsoft.Report.StiReport();
        this.report.loadFile("Dashboards/Dashboard.mrt");
    }
}

How it works. The report object handles rendering and hands the result to the browser's print flow, so no viewer is required.

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.