SftPrintPreview/OCX 1.0

SftPrintPreview.PrintContents Method

Softel vdm, Inc.

Start printing.

Syntax       

VB.NET

object.PrintContents(ByVal ShowDialog As Boolean, ByVal Handle As Integer, ByVal AllowCurrentPage As Boolean)

VB

object.PrintContents(ByVal ShowDialog As Boolean, ByVal Handle As Long, ByVal AllowCurrentPage As Boolean)

C#.NET

void object.PrintContents(bool ShowDialog, int Handle, bool AllowCurrentPage);

VC++

HRESULT object->PrintContents(VARIANT_BOOL ShowDialog, long Handle, VARIANT_BOOL AllowCurrentPage);

C

HRESULT object->raw_PrintContents(VARIANT_BOOL ShowDialog, long Handle, VARIANT_BOOL AllowCurrentPage);

Delphi

procedure object.PrintContents(ShowDialog : WordBool, Handle : Integer, AllowCurrentPage : WordBool);

object

A SftPrintPreview object.

ShowDialog

True to display the Print dialog before printing, False otherwise.

Handle

The window handle of the application's main window, which serves as the parent window for the Print dialog.  If 0 is specified, the application's main window is determined automatically.

AllowCurrentPage

True to enable the "Current Page" radio button on the Print dialog, False otherwise.  The Print dialog on Windows versions before Windows 2000 does not offer a current page radio button.

Comments

The PrintContents method starts printing.

If the user modifies printer settings before printing, the PrinterChanged even occurs.

The PrintPages property can be used to define the pages to print using the PrintContents method.


Feedback / comments / error reports for this topic
© 2004 - Softel vdm, Inc. - www.windowscontrols.com