A dashboard can be rendered and exported to an HTML file straight from code, then saved in the browser.

In Angular.
@Component({
    template: `<button (click)="saveDashboardHtml()">Export to HTML</button>`
})
export class Example {
    async saveDashboardHtml() {
        var report = new Stimulsoft.Report.StiReport();
        report.loadFile("Dashboards/Dashboard.mrt");
        await report.renderAsync2();

        var htmlData = await report.exportDocumentAsync2(Stimulsoft.Report.StiExportFormat.Html);
        Stimulsoft.System.StiObject.saveAs(htmlData, report.reportAlias + ".html", "text/html;charset=utf-8");
    }
}

How it works. Only the export format differs from the PDF case — the same render-then-save flow produces HTML.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.