Hi Nahuel, list,
On Thu, Feb 26, 2009 at 10:41 PM, Nahuel Defossé <nahueldefo...@yahoo.com.ar> wrote: > Hi > I've created pdf output in a StringIO file which I'd like to print in my PyQt4 > app. Should I save it and send it to the system default reader? or could I > automate this task? Is it possible to pirnt the file directly from PyQt? Like Jim Bublitz, I'm using reportlab to generate pdf invoices. Instead of mucking around with printers and such I open the file in a pdf reader, using subprocess.call(). That way I also get a sort of print preview for free, and it works with the same code on linux and windows. I'm happy with that, although I did have some issues with file name encoding on windows. Hat tip: encode the command string with sys.getfilesystemencoding(), else it will blow up on windows. Take care, Håvard -- Håvard Gulldahl <hav...@gulldahl.no> _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt