Version

WinGanttViewPrintDocument Features

Topic Overview

Purpose

This topic introduces the features of the WinGanttViewPrintDocument™ component.

Required background

The following table lists the topics required as a prerequisite to understanding this topic.

Topic Purpose

Introduces the WinPrintDocument™ component which is the base for WinGanttViewPrintDocument component.

In this topic

This topic contains the following sections:

Features Overview

Features summary

The following table summarizes the features of the WinGanttViewPrintDocument component. Further details about some of the features are provided in the text blocks following the table.

Feature Description

Print Preview

Displays a print preview of the content of the WinGanttView control.

Print

Prints directly without showing a preview by calling the Print method on the UltraGanttViewPrintDocument component.

Legend

Print a legend.

Print Preview

The print preview feature of WinGanttViewPrintDocument enables you to preview content of the WinGanttView control before printing. For the purpose of print preview any of the following controls can be used with the WinGanttViewPrintDocument component:

  • Infragistics WinPrintPreviewDialog™ component

  • Infragistics WinPrintPreview™ control

  • Microsoft® PrintPreviewControl

  • Microsoft® PrintPreviewDialog

When a print preview is invoked, a Print Preview window is opened as shown below that displays the contents of the WinGanttView control.

WinGanttViewPrintDocument Features 1.png

Print

The Print feature enables you to print directly without showing a preview by calling the Print method on the UltraGanttViewPrintDocument component.

In Visual Basic:

Me.ultraGanttViewPrintDocument1.Print()

In C#:

this.ultraGanttViewPrintDocument1.Print();

Legend

The WinGanttViewPrintDocument component provides the ability to print a legend of the project displayed in the WinGanttView control. The legend consists of two basic parts:

  • Details Area – This area can take any arbitrary text. Also allows for certain replacement codes which provide document-specific or user-specific information such as the current date, the user name, page numbers, etc.

  • Key Area – Displays a graphical key for the user to identify the bars on the timeline section of UltraGanttView.

WinGanttViewPrintDocument Features 2.png

Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic explains how to use the Print Preview feature of theWinGanttViewPrintDocument™. In the particular example in this topic, the WinGanttViewPrintDocument™ is used with the WinPrintPreviewDialog™ to print preview the WinGanttView™ control.

Provides information about the Legend feature of the WinGanttViewPrintDocument component.

This topic explains, with code examples, how to customize the Print Version of the WinGanttView control using the InitializeGanttView event.