wpPrintPlainTextFile
Appearance
This instance method prints a file containing only ASCII text.
Syntax
_wpPrintPlainTextFile(somSelf, pPrintDest)
Parameters
- somSelf (WPFileSystem *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPFileSystem.
- pPrintDest (PPRINTDEST *) - input
- Pointer to the print data.
- This parameter 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 to replace or remove the system-supplied Plain Text File print algorithm. An override of this method does not call the parent. It is normally called asynchronously as a result of a call to wpPrintObject.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPFileSystem *somSelf; /* Pointer to the object on which the method is being invoked. */ PPRINTDEST *pPrintDest; /* Pointer to the print data. */ BOOL rc; /* Success indicator. */ rc = _wpPrintPlainTextFile(somSelf, pPrintDest);