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

In React.
import { Stimulsoft } from "stimulsoft-dashboards-js-react";

async function 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");
}

function App() {
    return <button onClick={saveDashboardHtml}>Export to HTML</button>;
}

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

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