PDA

View Full Version : TextPrinter class



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

Brandybuck
4th May 2008, 21:56
Version 0.2 is out. This takes advantage of the new QPrintPreviewDialog in Qt 4.4.0. This also fixes the WYSIWYG problem. Yay!

You will need Qt 4.4.0.