[reportlab-users] reportlab basic problem

reportlab-users@reportlab.com reportlab-users@reportlab.com
Tue, 14 Sep 2004 23:09:41 -0700


> hello i have started readingthe user guide for replort lab, but i have
> hit a probelm right away
> 
> from reportlab.pdfgen import canvas
> def hello(c):
> ~    c.drawString(100,100, "Hello World")
> c = canvas.Canvas("c:\hello.pdf")
> c.showPage()
> c.save

Could it be that save is a function and should be c.save() vs c.save?


> print "finished"
> 
> this code does not error, but produces no pdf file as the examples
> says it should... have i installed it incorrectly or is the user guide
> wrong?
> 

Johnny P