Showing a Dashboard in the WPF Viewer
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.In a WPF app a dashboard displays either in a ready-made window or embedded in a
Load, then show or embed.
How it works. The WPF viewer control hosts the dashboard inside your interface, while
На скриншоте ниже Вы можете увидеть результат выполнения данного кода:

StiViewerControl.Load, then show or embed.
var report = StiReport.CreateNewDashboard();
report.Load("Dashboards\\DashboardChristmas.mrt");
report.ShowWithWpf(); // ready-made WPF window
// or: ViewerControl.Report = report; // embedded controlShowWithWpf()— opens the dashboard in a built-in WPF preview window.ViewerControl.Report— assign the report to aStiViewerControlplaced in your own layout.
How it works. The WPF viewer control hosts the dashboard inside your interface, while
ShowWithWpf() is the quickest way to preview without designing a window.На скриншоте ниже Вы можете увидеть результат выполнения данного кода:
