Printer
(gb.qt4)
This
Класа allows to print documents on printers, or save them in a file.
Symbols
Printing a document
To print a document:
- Instanciate a Printer Објект.
- Call the Configure Метод. A printing configuration dialog is displayed.
- Call the Print method to run the printing process.
- The Begin Настан is raised when the print starts. You should define the number of pages to print inside the Begin event handler, by setting the Count Својство.
- If you don't define the Count property during the Begin event handler, the Paginate event will be raised again and again until that property is finally defined.
- The Draw event is raised for each page that must be printed.
- The End event is raised when the print terminates.
 |
Paint.Begin is automatically called just before the Begin event, and Paint.End just after the End event.
You don't have to call them "by hand".
|