[reportlab-users] renderPM problem

ketul patel reportlab-users@reportlab.com
Thu, 11 Mar 2004 21:25:50 +0000

<html><div style='background-color:'><DIV class=RTE>
<P>I am new to reportlab.I tried the following statements&nbsp; from the graphguide.pdf:</P><FONT color=#000081 face=Courier size=1>
<P align=left>from reportlab.graphics import renderPM</P>
<P align=left>renderPM.saveToFile(d, 'example1.png', 'PNG')</P>
<P></FONT>I got error which is as follow:</P>
<P>File "D:\PYTHON23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript<BR>&nbsp;&nbsp;&nbsp; exec codeObject in __main__.__dict__<BR>&nbsp; File "D:\Python23\Lib\site-packages\cherrypy-0.10-rc1\code\barchart.py", line 24, in ?<BR>AttributeError: 'module' object has no attribute 'saveToFile'</P>
<P>I checked with help(renderPM) &amp; there was no method saveToFile.</P>
<P>How can I save the reports as image??</P>
<P><BR><BR>&nbsp;</P></DIV></div><br clear=all><hr>Xerox Multifunction devices that print,copy,scan and fax.  <a href="http://g.msn.com/8HMBENIN/2752??PS=">Get affordable printing solutions that fit your needs .</a> </html>