PSBeginDoc() |
|
Syntax
Function PSBeginDoc(nPrinter, cTitle, nOrientation, nCopies, nPageSize, nDuplex, nPaperBin) -> nError
TPageScript:BeginDoc(nPrinter, cTitle, nOrientation, nCopies, nPageSize, nDuplex, nPaperBin) // Sets ::nError
Returns
An error code or 0 if the call is successful.
Description
Call PSBeginDoc() to start a new WINDOWS mode print job.
Arguments
nPrinter | The printer number to print. Pass 0 or NIL to print on the default printer. |
cTitle | Title of the document. |
nOrientation | Orientation of the document. APS_PORTRAIT or APS_LANDSCAPE are accepted. Defaults to APS_PORTRAIT. |
nCopies | Number of copies to print. Defaults to 1. |
nPageSize | May be any of the pre defined paper sizes supported by Windows, or a numeric value obtained by calling PSGetPaperNumbers(). |
nDuplex | Duplex mode. May be any of these values : DMDUP_SIMPLEX , DMDUP_VERTICAL or DMDUP_HORIZONTAL. Defaults to DMDUP_SIMPLEX. |
nPaperBin | May be any of the pre defined paper bins supported by Windows or a numeric value obtained by calling PSGetPaperBinNumbers. |