RpPrinter:Init()  Method

<< Click to Display Table of Contents >>

Navigation:  RpPrinter & PtrDevice Class Overview > RpPrinter Class >

RpPrinter:Init()  Method

Previous pageReturn to chapter overviewNext page

Purpose

To create a RpPrinter object.

Syntax

RpPrinter{oWindowOwner, oReport} SELF

 

Init(oWindowOwner, oReport) SELF

Arguments

oWindowOwner        The window which will own the PrintPreview and PrintMsg dialog windows.
oReport        The object that has the callback methods used to create the report or printed output.

Description

The RpPrinter object is initialized by retrieving the default printer from the WIN.INI file.  You should check the IsValid access of the returned object to make sure the RpPrinter object was able to initialize correctly.

Example

// Instantiate an RpPrinter Object

oRpPrinter := RpPrinter{oWindow, oReport}