PtrDevice:Print() Method

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > PtrDevice Class >

PtrDevice:Print() Method

Previous pageReturn to chapter overviewNext page

Purpose

Initiate the printing process.

Syntax

<oPtrDevice>:Print(cName, cFile, cCaption, cMessage, [lPreBody], [lPostBody])

Arguments

cName

 The name used for the print job.  This is the name that will be displayed in the Windows Print Manager.

cFile

 The filename used when the "Print To File" option is selected.

cCaption

 The caption of the dialog window displayed during printing.

cMessage

 The message of the dialog window displayed during printing.

lPreBody

 Logical indicating if a pre-body page is to be printed.  (You must provide a PrintPreBody() callback method to actually perform the printing).  Default: FALSE

lPostBody

 Logical indicating if a post-body page is to be printed.  (You must provide a PrintPostBody() callback method to actually perform the printing).  Default: FALSE

Description

For a complete description of the printing process, please see the discussion in the PtrDevice  introduction.

Example

// Begin printing

oPtrDevice:Print("App Name","PRINT.PRN","Print","Printing...")