[reportlab-users] silly question - put values in column

pier carteri pier.carteri at gmail.com
Tue May 13 06:30:17 EDT 2008


Hi
for the first question you can try:

#print nuova_lista
from reportlab.lib import pagesizes
top = pagesize.a4[1] -100

def stampaid(can):
can.setTitle('ELENCO IDENTIFICATIVI')
can.setFont('Courier', 16)
for row in rows:
top = top -20
can.drawString(10, top, str(row[0]))


can = canvas.Canvas("LISTA IDENTIFICATIVI.pdf")
stampaid (can)
can.showPage()
can.save()

for the second question, it seems to me that it works as expected: I'
ve opened the attacched pdf and the title is LISTA IDENTIFICATIVI;
I' ve used acrobat reader as viewer

Hope this helps
Ciao!
Pier

> Hy,

>

> i'm veryvery newbie in reportlab, so sorry for the silly question…

>

> I have to make a column with values taken from a postgresql database, I make

> a query and that's ok, I have my list, but how order values vertically? And

> why the canvas.setTitle doesn't work?

>

> Thanx

>

> Giulia

>

> I attach my code

>

>

> ________________________________

> Windows Live Mobile Collegati a Messenger dal tuo cellulare!

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>

>



More information about the reportlab-users mailing list