[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Creating reports with PyQt4?
From:       michael h <michaelkenth () gmail ! com>
Date:       2014-08-30 23:10:35
Message-ID: CAD0nt=Hd1OHYA95hQ3Oic7wtEeAfs-4wasti8TsanQJYPJCu4Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sat, Aug 30, 2014 at 7:21 AM, Ronald Santos <ronaldsantos63@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@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

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, \
Aug 30, 2014 at 7:21 AM, Ronald Santos <span dir="ltr">&lt;<a \
href="mailto:ronaldsantos63@gmail.com" \
target="_blank">ronaldsantos63@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>good day  </div><div>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!  \
</div>

<div>Are there any other way to create reports with PyQt4?</div><span \
class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div dir="ltr"><div \
style="text-align:center"><span style="font-family:&#39;times new \
roman&#39;,serif;font-size:xx-large"><b><i><u>ORIONLINE</u></i></b></span></div>

<div style="text-align:left"><font face="&#39;times new roman&#39;, serif" \
size="4"><i><b>CONTATOS:</b></i></font></div><div style="text-align:left"><font \
face="&#39;times new roman&#39;, serif" size="4"><i>RONALD&gt;(91)8213-3553<br>

                               (91)9606-3773<br></i></font></div></div>
</font></span></div>
<br>_______________________________________________<br>
PyQt mailing list      <a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div><div \
class="gmail_extra"><br></div><div class="gmail_extra"> Ronald,</div><div \
class="gmail_extra"><br></div><div class="gmail_extra">It&#39;s not strictly a PyQt4 \
solution, but I&#39;ve used wkhtmltopdf (via subprocess) to convert html to pdf in \
the past. It uses QtWebkit itself so the output is quite good.</div> <div \
class="gmail_extra"><br></div><div class="gmail_extra">MH</div></div>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic