This class represents the Windows or PostScript printer, and is the vehicle through
which printing may be launched by an application. Printing can also
be achieved through using of lower functions and classes, but
this and associated classes provide a more convenient and general
method of printing.
Constructor. Pass an optional pointer to a block of print
dialog data, which will be copied to the printer object's local data.
Creates the default printing abort window, with a cancel button.
Returns true if the user has aborted the print job.
static wxPrinterError GetLastError()
Returned value is one of the following:
No error happened.
The user cancelled printing.
There was an error during printing.
Returns the print data
associated with the printer object.
Starts the printing process. Provide a parent window, a user-defined wxPrintout object which controls
the printing of a document, and whether the print dialog should be invoked first.
Print could return false if there was a problem initializing the printer device context
(current printer not set, for example) or the user cancelled printing. Call
to get detailed
information about the kind of the error.
Invokes the print dialog. If successful (the user did not press Cancel
and no error occurred), a suitable device context will be returned
(otherwise NULL is returned -- call
to get detailed
information about the kind of the error).
The application must delete this device context to avoid a memory leak.
Default error-reporting function.
Invokes the print setup dialog. Note that the setup dialog is obsolete from
Windows 95, though retained for backward compatibility.