[PyQt] Creating reports with PyQt4?

michael h michaelkenth at gmail.com
Sun Aug 31 00:10:35 BST 2014


On Sat, Aug 30, 2014 at 7:21 AM, Ronald Santos <ronaldsantos63 at gmail.com>
wrote:

> good day
> I am creating a program to generate PDF reports with PyQt4. I created a
> template in HTML with style sheets, but when I renderizo this html
> QPrintPreviewDialog He loses the style!
> Are there any other way to create reports with PyQt4?
>
> --
> *ORIONLINE*
> *CONTATOS:*
>
>
> *RONALD>(91)8213-3553                 (91)9606-3773*
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>


Ronald,

It's not strictly a PyQt4 solution, but I've used wkhtmltopdf (via
subprocess) to convert html to pdf in the past. It uses QtWebkit itself so
the output is quite good.

MH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140830/57f7a48a/attachment.html>


More information about the PyQt mailing list