<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hi<br>
<br>
I am currently using reportlab to produce .pdf reports.<br>
<br>
I am then viewing the report using a pdf viewer such as 'Foxit Reader'
which I find excellent for this purpose because:<br>
<br>
1) The same viewer is available on both platforms<br>
2) The footprint is small<br>
3) You can send the report directly to a printer without having to view
it.<br>
</font>
<div class="moz-signature">
<meta http-equiv="CONTENT-TYPE" content="text/html; ">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.0 (Linux)">
<meta name="CREATED" content="0;0">
<meta name="CHANGEDBY" content="Paul Malherbe">
<meta name="CHANGED" content="20081119;14321500">
<style type="text/css">
        <!--
                P { color: #000000 }
        -->
        </style>
<p><font face="Helvetica, Arial, sans-serif">Regards </font><br>
<br>
<font face="Helvetica, Arial, sans-serif"><font size="4"><u><b>Paul
Malherbe</b></u></font></font><font size="1"><br>
<br>
</font><img src="cid:part1.03030907.01060203@tartan.co.za"
name="graphics1" align="bottom" border="0" height="17" width="28"><font
face="Helvetica, Arial, sans-serif"><font style="font-size: 8pt;"
size="1">+27
(0) 21 6711866</font></font><font size="2"><br>
<img src="cid:part2.08070608.05060408@tartan.co.za" name="graphics2"
align="bottom" border="0" height="17" width="28"></font><font
face="Helvetica, Arial, sans-serif"><font style="font-size: 8pt;"
size="1">+27
(0) 82 9005260</font></font> </p>
</div>
<br>
<br>
John Stowers wrote:
<blockquote cite="mid:1234873908.812.29.camel@nzjrs-laptop" type="cite">
<pre wrap="">On Fri, 2009-02-13 at 19:21 -0200, Jose de Paula Eufrasio Junior wrote:
</pre>
<blockquote type="cite">
<pre wrap="">So I am working on a simple risk management app [0] using pygtk and
the fantastic kiwi framework. I got to a point where I MUST show some
data in a report fashion, and I will surely need many more of those.
What path should I take? Understand that I need to make that app run
on linux and windows, so all stuff must be portable or pure python:
- Create PDFs using geraldo [1]
- Create the reports using HTML/CSS and pisa [2] to generate PDFs
Both options work ok to CREATE the PDFs, te problem is how to show it
inside a window/view using pyGTK. I tried to research poppler to show
PDFs but apparently it does not have ports to Win32. The same thing
with WebKit [3] (that I could use to show the HTML reports), no
apparent download avaiable for webkit-gtk on Win32.
</pre>
</blockquote>
<pre wrap=""><!---->
I like the HTML approach. All good reporting frameworks that I have seen
support HTML output. On linux I would also suggest using webkit to show
this html
If you want to show html on windows, you could create python bindings to
GtkIEEmbed [1] (which is a Gtk widget for embedding internet explorer)
John
[1] <a class="moz-txt-link-freetext" href="http://live.gnome.org/GtkIEEmbed">http://live.gnome.org/GtkIEEmbed</a>
</pre>
<blockquote type="cite">
<pre wrap="">So, I am open to suggestions. How to show that stuff on pygty? I
tought about converting the PDF to something that I can put on a
PixBuff, but apparently PIL can't do that. I am lost :P
[0] <a class="moz-txt-link-freetext" href="http://github.com/coredump/crisk/tree/master">http://github.com/coredump/crisk/tree/master</a>
[1] <a class="moz-txt-link-freetext" href="http://geraldo.sourceforge.net/">http://geraldo.sourceforge.net/</a>
[2] <a class="moz-txt-link-freetext" href="http://pypi.python.org/pypi/pisa/">http://pypi.python.org/pypi/pisa/</a>
[3] <a class="moz-txt-link-freetext" href="http://code.google.com/p/pywebkitgtk/">http://code.google.com/p/pywebkitgtk/</a>
--
José de Paula Eufrásio Júnior (coredump)
MCSO, GRC Professional
<a class="moz-txt-link-freetext" href="http://core.eti.br">http://core.eti.br</a>
--
José de Paula Eufrásio Júnior (coredump)
MCSO, GRC Professional
<a class="moz-txt-link-freetext" href="http://core.eti.br">http://core.eti.br</a>
_______________________________________________
pygtk mailing list <a class="moz-txt-link-abbreviated" href="mailto:pygtk@daa.com.au">pygtk@daa.com.au</a>
<a class="moz-txt-link-freetext" href="http://www.daa.com.au/mailman/listinfo/pygtk">http://www.daa.com.au/mailman/listinfo/pygtk</a>
Read the PyGTK FAQ: <a class="moz-txt-link-freetext" href="http://faq.pygtk.org/">http://faq.pygtk.org/</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
pygtk mailing list <a class="moz-txt-link-abbreviated" href="mailto:pygtk@daa.com.au">pygtk@daa.com.au</a>
<a class="moz-txt-link-freetext" href="http://www.daa.com.au/mailman/listinfo/pygtk">http://www.daa.com.au/mailman/listinfo/pygtk</a>
Read the PyGTK FAQ: <a class="moz-txt-link-freetext" href="http://faq.pygtk.org/">http://faq.pygtk.org/</a>
</pre>
</blockquote>
</body>
</html>