Exporting a Dashboard
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.A dashboard renders and exports to documents and data formats just like a report.
Load, then export.
How it works. The dashboard is rendered and serialized to the chosen format in one call, ready to be saved or sent.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

Load, then export.
var report = StiReport.CreateNewDashboard();
report.Load("Dashboards\\DashboardChristmas.mrt");
var stream = new FileStream("Dashboard.pdf", FileMode.Create);
report.ExportDocument(StiExportFormat.Pdf, stream); // Excel, Image, ...ExportDocument(StiExportFormat, stream)— writes the dashboard; theStiExportFormatenum picks PDF, Excel, image and more.
How it works. The dashboard is rendered and serialized to the chosen format in one call, ready to be saved or sent.
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:
