PrintOutEx

Description

Prints a document to a specified printer without calling the common Print dialog box, or to the default printer if none is specified. The method can specify the page range and number of copies to print. See Print a Document.

Syntax

bRet = KeyView.PrintOutEx(Printer, FromPage, ToPage, Copies, Flags)

Parameters

Parameter

Type

Description

Printer

String

The name of the printer to use. If the string is empty, the default printer is used. An example of a valid string value is

\\Calculus\HP LaserJet IIISi

FromPage

Integer

The number of the first page to print. For spreadsheet documents, this is the first sheet number.

ToPage

Integer

The number of the last page to print. For spreadsheet documents, this is the last sheet number.

Copies

Integer

The number of copies to print.

Flags

Integer

Reserved. This parameter should be set to 0.

NOTE:

If FromPage, ToPage, and Copies are all set to 0, this method behaves the same way as PrintOut

If FromPage and ToPage are both set to 0, all pages are printed.

If Copies is set to 0, one copy is printed.

Returns

Type

Description

Boolean

TRUE if the method succeeds.

FALSE if the method fails.


_HP_HTML5_bannerTitle.htm