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 settings = new Stimulsoft.Dashboard.Export.Settings.StiPdfDashboardExportSettings();
settings.orientation = Stimulsoft.Report.Components.StiPageOrientation.Portrait;
settings.paperSize = Stimulsoft.System.Drawing.Printing.PaperKind.A3;
var pdfData = await report.exportDocumentAsync2(Stimulsoft.Report.StiExportFormat.Pdf, undefined, settings);
Stimulsoft.System.StiObject.saveAs(pdfData, report.reportAlias + ".pdf", "application/pdf");
}
function App() {
return <button onClick={saveDashboardPdf}>Export to PDF</button>;
}StiPdfDashboardExportSettings — per-format options such as orientation and paperSize.exportDocumentAsync2(format, undefined, settings) — export with those settings applied.