KeyView 24.4
KeyView Viewing SDK Programming Guide

# PrintOutEx

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.

Copyright 2016-2024 Open Text
Version 24.4 | Last updated September 2024

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL KeyView 24.4

Topic Title: PrintOutEx