Sorry about that. I must have just skipped over the setup() call in your code. If you're creating highly customized content then I think you'll always need to think about getting the pages to the printer in the right order.
For rich text documents, there's code that does this in the Qt 3 text drawing demo (see the filePrint() method in the examples/demo/textdrawing/textedit.cpp file). In Qt 4, the demos/textedit demo does this with a lot less code. Or are you think of something else? David -- http://mail.python.org/mailman/listinfo/python-list