# 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.

© Copyright 2016-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm