wpPrintPrinterSpecificFile
Appearance
This instance method is called to print an object of type "Printer-specific Data".
Syntax
_wpPrintPrinterSpecificFile(somSelf, pPrintDest)
Parameters
- somSelf (WPDataFile *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPDataFile.
- pPrintDest (PPRINTDEST *) - input
- Pointer to the print data.
- It contains all the parameters required to call **DevPostDeviceModes** and **DevOpenDC**. For more information about **DevPostDeviceModes** and **DevOpenDC**, see the **Presentation Manager Programming Reference**.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE Successful completion.
- FALSE Error occurred.
How to Override
This method can be overridden by any object class that wants to replace the system-supplied Printer-specific File print method. It is normally called asynchronously as a result of a call to wpPrintObject.
Example Code
#define INCL_WINWORKPLACE
#include <os2.h>
WPDataFile *somSelf; /* Pointer to the object on which the method is being invoked. */
PPRINTDEST *pPrintDest; /* Pointer to the print data. */
BOOL rc; /* Success indicator. */
rc = _wpPrintPrinterSpecificFile(somSelf,
pPrintDest);