Cloud
Cloud-Dienstleistung für schnelle und effektive Analyse und Visualisierung von Daten für Ihr Business ohne eigene Applikationen zu erstellen oder zu programmieren.
@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");
}
}exportDocumentAsync2(StiExportFormat.Html) — export the rendered dashboard to HTML bytes.StiObject.saveAs(data, name, "text/html;charset=utf-8") — save the result as a file.