ShowPrintPreviewDlg method (LEADDlgFile Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int ShowPrintPreviewDlg (TWinControl* AOwnerCtrl);

Delphi Syntax

Function ShowPrintPreviewDlg (AOwnerCtrl: TWinControl ): L_INT;

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Displays the print preview dialog box for a single image printing.

The LEADImage property must be assigned a Main Control containing a valid bitmap before calling this method.

The following properties are associated with this method:

MarginsRect property.

MinMarginsRect property.

DevModeHandle property.

DevNamesHandle property.

WindowIcon property.

CommandShow property.

To include a Help button in the dialog, set the ShowHelpButton property to TRUE.

The Print Preview dialog for printing a single image can be seen below:

image\PrintPreview.gif

See Also

Elements:

MarginsRect property, MinMarginsRect property, DevModeHandle property, DevNamesHandle property, WindowIcon property, CommandShow property, ShowHelpButton property, EnableMethodErrors property

Topics:

Imaging Common Dialogs: Properties, Methods, and Events