Brandybuck
17th July 2007, 06:50
I've been fiddling around with printing since Christmas, and I've come up with a utility class that may be useful to some of you. It is not a report tool, but a utility to make printing easier. You can define headers and footers, and print, export to PDF or display a print preview. A quick example is included.
One note on WYSIWYG printing: it sucks. By default it won't attempt wysiwyg printing, so that the print preview won't match up with the printer or pdf. The print() and exportPdf() methods of a wysiwyg paramter to turn it on. This produces a less than optimal print output. I'm hoping this can be fixed with Qt 4.4.0.
This is free software under the BSD license. I hope this helps.
You can download it from http://www.qt-apps.org/content/show.php/TextPrinter?content=62383
One note on WYSIWYG printing: it sucks. By default it won't attempt wysiwyg printing, so that the print preview won't match up with the printer or pdf. The print() and exportPdf() methods of a wysiwyg paramter to turn it on. This produces a less than optimal print output. I'm hoping this can be fixed with Qt 4.4.0.
This is free software under the BSD license. I hope this helps.
You can download it from http://www.qt-apps.org/content/show.php/TextPrinter?content=62383