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

In Vue.
<script setup lang="ts">
import { Stimulsoft } from "stimulsoft-dashboards-js-vuejs";

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");
}
</script>

<template>
    <button @click="saveDashboardHtml">Export to HTML</button>
</template>

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

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.