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


To create a RpPrinter object.


RpPrinter{oWindowOwner, oReport} SELF


Init(oWindowOwner, oReport) SELF


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.


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.


// Instantiate an RpPrinter Object

oRpPrinter := RpPrinter{oWindow, oReport}