Procedure PSBeginRawDoc(nPrinter, cTitle)
TPageScript:BeginRawDoc(nPrinter, cTitle)


An error code or 0 if the call is successful.


PSBeginRawDoc() starts a new RAW (direct) print job. Instead of printing using GDI functions, RAW printing means that you print directly on the printer port, using the printer's specific escape codes, exactly the same way as you would do on an old DOS printer. You are responsible to send the escape codes recognized by the printer connected to the port. The printer must support RAW printing, which is not the case with Windows only (GDI) printers.


nPrinter The printer number to print. Pass 0 or NIL to print on the default printer.
cTitle Title of the print job.