ComponentOne GanttView for WinForms
In This Topic
    Print
    In This Topic

    GanttView lets you print the chart and perform basic as well as advanced print settings using built-in methods.

    To use the printing feature in the GanttView, you need to do the following:

    Note: ComponentOne now provides the C1.Win.Printing NuGet package, which provides three libraries: C1.PrintDocument, C1.Win.PrintPreview and C1.Win.RibbonPreview. Each library provides a set of previewing controls or components. The PrintDocument library provides the PrintDocument and MultiDocument components, the PrintPreview library provides the PreviewOutlineView, PreviewPane, PreviewTextSearchPanel, Thumbnail, PrintPreviewControl and PrintPreviewDialog components, and RibbonPreview provides the RibbonPreview and RibbonPreviewDialog components.

    GanttView project includes a PrintInfo class to control the information related to printing the schedule. The properties in the PrintInfo class are available at design time, run time, and programmatically. At run time these properties appear in the Print dialog box where you can select the following:

    To print your project schedule, follow the steps below:

    1. Click the Print button to open the Print dialog box.
    2. Select the type of print layout from the prints styles in the Print dialog box.
    3. Click the Settings button in the Print dialog box to open the Style Settings dialog box where you can customize the header, footer, and legend appearance for each page.
    4. Click the Page Setup button so you can specify the page's size, source, orientation, and margins.
    5. Determine the print range. You can select a specific range to print by clicking the radio button Print specific dates and select start and end date in the two combo boxes.
    6. Click the OK button in the Print dialog box to start printing by default printer or click Preview button to review the printing appearance. Once the print progress is starting, the Processing Document form will appear.

    The Processing Document shows the status and the percentage complete of progress. It also provides a Cancel button to cancel the operation. The print operation will use system default printer to print.

    When the preview progress is starting, the Processing Document form will appear to shows the status of initializing progress.  The Print Preview dialog will appear after the preview document is generated, then. In the Print Preview dialog box you can change page setup, zoom, save, print…etc.