PrintStart() Method callback

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > Callback Methods >

PrintStart() Method callback

Previous pageReturn to chapter overviewNext page

Purpose

This callback method is called prior to printing and is where you perform initialization.

Syntax

<oReport>:PrintStart(oPtrDevice)

Arguments

<oPtrDevice>The PtrDevice which has initiated the call to this callback method.

Return Values

The appropriate return values are:

PRINT_OKAll is OK; start printing.
PRINT_ERRORIndicates an error occurred and printing should terminate.

Description

This callback method is called if it exists as a method of the report object.  The report object is specified in the <oReport> parameter of the PtrDevice:Init.  This is the first callback method called during a print job.