Thanks for your help. I've tried following your kind advice, and have had some problems. The reportlabs installation seemed ok, but on checking (runall.py) there were errors reported: .C:\Python21\lib\reportlab .EEEFailed to import renderPM. ...............................F............................................ .... ......................... ====================================================================== ERROR: Test if classes have a doc string. ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_docstrin gs.py", line 164, in test1 self._writeLogFile(ClassType) File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_docstrin gs.py", line 114, in _writeLogFile objects = getModuleObjects(RL_HOME, 'reportlab', objType) File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_docstrin gs.py", line 67, in getModuleObjects module = getattr(module, part) AttributeError: 'reportlab.graphics' module has no attribute 'renderPM' ====================================================================== ERROR: Test if methods have a doc string. ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_docstrin gs.py", line 170, in test2 self._writeLogFile(MethodType) File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_docstrin gs.py", line 114, in _writeLogFile objects = getModuleObjects(RL_HOME, 'reportlab', objType) File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_docstrin gs.py", line 67, in getModuleObjects module = getattr(module, part) AttributeError: 'reportlab.graphics' module has no attribute 'renderPM' ====================================================================== ERROR: Test if modules have a doc string. ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_docstrin gs.py", line 176, in test3 self._writeLogFile(ModuleType) File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_docstrin gs.py", line 114, in _writeLogFile objects = getModuleObjects(RL_HOME, 'reportlab', objType) File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_docstrin gs.py", line 67, in getModuleObjects module = getattr(module, part) AttributeError: 'reportlab.graphics' module has no attribute 'renderPM' ====================================================================== FAIL: ensure noCWD removes current dir from path ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Program Files\ZopeSite\lib\python\Shared\reportlab\test\test_lib_util s.py", line 47, in test4 noCWD=1) File "C:\Python21\reportlab\test\unittest.py", line 266, in failUnlessRaises raise self.failureException, excName AssertionError: ImportError I tried to install the rlzope demo, but when I got to adding an External Method within Zope I encountered an error: Error Type: ImportError Error Value: No module named reportlab.platypus.paragraph It seems to me (but I could be wrong) that the RenderPM / RenderableCharts product requires reportlab to be installed Can anyone provide help on this or PIDDLE/SPING/any other packages that can be used in Zope to generate PDF documents on the fly? Thanks once again Kind regards Ashley From: Jerome Alet <alet@librelogiciel.com> To: Ashley Lloyd <ashleylloyd@hotmail.com> CC: zope@zope.org Subject: Re: [Zope] Newbie: Creating PDF Documents on the fly in Zope Date: Thu, 6 Feb 2003 10:40:06 +0100 On Thu, Feb 06, 2003 at 09:29:22AM +0000, Ashley Lloyd wrote:
I have a few pages in Zope generating info gained from an Interbase DB.
The
pages are fine, except we also want a user to be able to click a button on these pages and generate a PDF document for printing, looking pretty much the same but with all the necessary page breaks and associated headers/footers.
I suggest you download ReportLab from http://www.reportlab.com It includes a demo to create PDF documents from a Zope External Method. Alternatively you can use Dirk Datzert's ZRenderPM (IIRC) Zope Product which uses ReportLab but is higher level than the demo I talk above. bye, Jerome Alet _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) _________________________________________________________________ Surf together with new Shared Browsing http://join.msn.com/?page=features/browse&pgmarket=en-gb&XAPID=74&DI=1059