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.
import { Stimulsoft } from "stimulsoft-dashboards-js-react";
async function saveDashboardPdf() {
var report = new Stimulsoft.Report.StiReport();
report.loadFile("Dashboards/Dashboard.mrt");
await report.renderAsync2();
var pdfData = await report.exportDocumentAsync2(Stimulsoft.Report.StiExportFormat.Pdf);
Stimulsoft.System.StiObject.saveAs(pdfData, report.reportAlias + ".pdf", "application/pdf");
}
function App() {
return <button onClick={saveDashboardPdf}>Export to PDF</button>;
}renderAsync2() — build the dashboard document before exporting.exportDocumentAsync2(StiExportFormat.Pdf) → StiObject.saveAs(data, name, mime) — export to bytes and trigger the download.