[reportlab-users] reportlab basic problem
Robin Becker
reportlab-users@reportlab.com
Thu, 16 Sep 2004 08:39:57 +0100
Tim Smith wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> ok it's outputs a file now, but i don't see "hello world" when i open
> it? it just a blank page, i'm in win98 using adobe 6
> Robin Becker wrote:
>
....
try this code I checked and it works :)
from reportlab.pdfgen import canvas
def hello(c):
c.drawString(100,100, "Hello World")
c = canvas.Canvas(r"c:\hello.pdf")
hello(c) #call the hello function
c.showPage()
c.save()
--
Robin Becker