Hi luca,<br><br>Just a thought: Does your plugin call save() (from reportlab) on the PDF document that you are creating.<br>It sounds like something is not being flushed properly until you close QGIS?<br><br>Carson<br><br>
<div class="gmail_quote">On Fri, Oct 16, 2009 at 2:23 PM, Luca Mandolesi <span dir="ltr">&lt;<a href="mailto:mandoluca@gmail.com">mandoluca@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi to all.<div>Selecting feautures from qgis canvas, I can visualize data from postgres. Then I wanna export a pdf report through reportlab.</div><div>If my script run as standalone, export correctly the report, but, if I launch the script whithin my Qgis plugin (pyarchinit), it&#39;s impossible open the pdf, which have 0 KB size. Only closing Qgis, the pdf result correct and it&#39;s possible open it.</div>

<div><br></div><div>Does reportlab and Qgis have problems or it&#39;s my mistake?</div><div><br></div><div>A little video of the problem:</div><div><a href="http://www.youtube.com/watch?v=HWHOyG2nHsw" target="_blank">http://www.youtube.com/watch?v=HWHOyG2nHsw</a></div>

<div><br></div><div>Bye bye,</div><div><br></div><font color="#888888"><div>luca</div>
</font><br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Carson Farmer<br>National Centre for Geocomputation<br>John Hume Building,<br>National University of Ireland, Maynooth,<br>Maynooth,<br>Co. Kildare,<br>Ireland.<br><a href="http://www.carsonfarmer.com">www.carsonfarmer.com</a><br>