dashboard-117141-winforms-dashboard-winforms-designer-ui-elements-and-customization-dialogs-and-wizards-print-preview-form.md
This document describes the Print Preview window, which displays the dashboard/dashboard item as it appears on paper.
In the Print Preview, you can change the orientation and size of the printed page, specify the margins, scale the document, etc. To learn more, see Print Preview for WinForms.
You can also customize printing options specific to a dashboard/dashboard item. To do this, click the Options button in the Print group. When previewing the dashboard, the following Options dialog is invoked:
This dialog can contain different options, depending on the dashboard item. To learn more, see the documentation for the required dashboard item.
The DashboardDesigner exposes the following API to access Print Preview settings:
| API | Description |
|---|---|
| DashboardDesigner.PrintPreviewType | Gets or sets the type of Print Preview used to preview dashboard items or the entire dashboard. |
| DashboardDesigner.PrintPreviewShowing | Allows you to customize the Print Preview window at runtime. |
| DashboardDesigner.ShowPrintPreview | Invokes the Print Preview, which shows the print preview of the dashboard. |
The following properties allow you to access DashboardPrintPreviewOptions that contains printing options of a dashboard/dashboard item:
To learn how to customize the Print Preview form in the WinForms Viewer, see the following topic: