[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TCustomPrintDialog

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements the base class for TPrintDialog.

## Declaration

Source position: dialogs.pp line 560

`type TCustomPrintDialog = class(TCommonDialog)`
`public`
`constructor Create(); override;` |  | Constructor for the class instance.
`property Collate: Boolean; [rw]` |  | Enables or disables page collation when multiple copies are produced.
`property Copies: Integer; [rw]` |  | Number of Copies requested for the document.
`property FromPage: Integer; [rw]` |  | First page number to include in the print request.
`property MinPage: Integer; [rw]` |  | Smallest value allowed in the page number for a print range.
`property MaxPage: Integer; [rw]` |  | Largest value allowed in the page number for a print range.
`property Options: TPrintDialogOptions; [rw]` |  | Set of options enabled when the print dialog is executed.
`property PrintToFile: Boolean; [rw]` |  | When True, printing is spooled to a file instead of directly to the printer.
`property PrintRange: TPrintRange; [rw]` |  | Determines which values are used to represent the page range.
`property ToPage: Integer; [rw]` |  | ToPage - the final page number in the range for printing.
`end;`

## Inheritance

`TCustomPrintDialog` |  | Implements the base class for TPrintDialog.
`TCommonDialog` |  | The base type from which other dialogs are derived.
`TLCLComponent` |  | The base class for LCL components which have an associated widget.
`TComponent`
?
`TObject`

## Description

TCustomPrintDialog provides properties needed to configure print jobs in the TPrintDialog descendant.

Use the Options property to enable or disable use of specific properties on the dialog.

Use the Execute method to display the dialog and capture the values entered using the dialog. Use UserChoice to determine the button clicked or action taken to close the dialog.

The TPrintDialog descendant is defined in the printer4lazarus package.