# Print Preview Dialog Box

## Content

The **Print Preview** dialog box is used for customizing and displaying the layout of each page of the document before it is printed.
**To access the Print Preview dialog box**
Click on the **Print** button in the GanttView toolbar and then click the **Preview** button from the Print dialog.
The following image shows the **Print Preview** dialog box:
![C1WinForms GanttView - Print dialog box demo](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/documentsgraphics/printpreviewdialogbox.png)
The Following table describes different groups of commands present in the print preview ribbon:

| **Component** | **Description** |
| --------- | ----------- |
| ![C1WinForms GanttView - Report dialog box demo](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/ribbonpreview_report.png) | The Report group has following buttons: <ul><li><strong>Open</strong> \- Open a report \(\.c1d or \.c1dx\) document to preview</li><li><strong>Export</strong> \- Export the current report document to a file</li><li><strong>Print</strong> \- Print the current report document</li></ul> |
| ![C1WinForms GanttView - Page dialog box demo](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/ribbionpreview_page.png) | The Page group has following buttons: <ul><li><strong>Page Setup</strong> \- Change the page settings of the current document</li><li><strong>Potrait</strong> \- Potrait orientation of the preview</li><li><strong>Landscape</strong> \- Landscape orientation of the preview</li><li><strong>Reflow</strong> \- Regenerate or Refresh the document</li></ul> |
| ![C1WinForms GanttView - Navigation dialog box demo](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/ribbonpreview_navigation.png) | The Navigation group has following buttons: <ul><li><strong>Next Page</strong> \- Go to the next page</li><li><strong>Last Page</strong> \- Go to the last page of the document</li><li><strong>Previous Page</strong> \- Go to the previous page</li><li><strong>First Page</strong> \- Go to the first page of the document</li><li><strong>Page Number Text Box</strong> \- Displays the current page\. You can type the page number to navigate\.</li></ul> |
| ![C1WinForms GanttView - Zoom dialog box demo](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/ribbonpreview_zoom.png) | The Zoom group has following buttons: <ul><li><strong>Zoom</strong> \- Customize zoom level settings</li><li><strong>Fit Width</strong> \- Zoom pages to fill the window width</li><li><strong>Fit Window</strong> \- Zoom pages to fit within the window</li><li><strong>100% Zoom</strong> \- Zoom the document to 100% of the normal size</li></ul> |
| ![C1WinForms GanttView - Tools dialog box demo](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/ribbonpreview_tools.png) | The Tools group has following buttons: <ul><li><strong>Pages</strong> \- View thumbnails panel of the pages</li><li><strong>Outline</strong> \- View outline panel of the pages</li><li><strong>Search</strong> \- Text search panel to search text in the document</li><li><strong>Hand Tool</strong> \- Scroll in window using the mouse</li><li><strong>Text Select Tool</strong> \- Select text to copy</li><li><strong>Copy Text</strong> \- Copy the selected text</li></ul> |
| ![C1WinForms GanttView - Custom Quick Access dialog box demo](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/ribbonpreview_quickaccess.png) | The Quick Access Toolbar's dropdown menu has following options: <ul><li><strong>Text Select Tool</strong> \- Select text text to copy</li><li><strong>Zoom In Tool</strong> \- Zoom into a mouse\-selected area</li><li><strong>Zoom Out Tool</strong> \- Zoom out of a mouse\-selected area</li><li><strong>Show Above the Ribbon</strong> \- To show the toolbar above ribbon</li><li><strong>Minimize the Ribbon</strong> \- To minimize the ribbon components</li></ul> |

You can also customize the Print Preview dialog in GanttView applications. The **PrintInfo** class provides the **PreviewHelper** property for this purpose. For instance, if you do not want to show the **Open** button in the **Print Preview Dialog** of GanttView application, you can simply set the visibility of that button to false.
![C1WinForms GanttView - Visibility customization through PrintPreview Dialog](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/previewhelper-openbutton-hidden.png)
This is depicted in the code snippet below:

```csharp
private void ganttView_BeforePrintPreview(object sender, CancelEventArgs e)
        {
            if (ganttView.PrintInfo.PreviewHelper.C1PrintPreviewDialog is C1.Win.RibbonPreview.C1RibbonPreviewDialog)
                (ganttView.PrintInfo.PreviewHelper.C1PrintPreviewDialog as C1.Win.RibbonPreview.C1RibbonPreviewDialog).RibbonElements.FileOpen.Visible = false;
        }
```

We have set the visibility of the button for File open action to false using the **PreviewHelper** property.
The visibility can be changed at design time via the **Properties** window as well.
![C1WinForms GanttView - Visibility customization through Properties windows](https://cdn.mescius.io/document-site-files/images/7e40233e-00f6-4cd8-af13-0764ef4e9235/images/previewhelper-propertieswindow.gif)