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

giulia cherubini mukkablues at hotmail.it
Tue May 13 08:53:18 EDT 2008



IT WORKS!!!! :-)definitive version attachedthanx giulia> Date: Tue, 13 May 2008 13:07:34 +0200> From: pier.carteri at gmail.com> To: reportlab-users at reportlab.com> Subject: Re: [reportlab-users] silly question - put values in column> > ops... just a typo error. The correct line is> top = pagesizes.A4[1] -100> > Regards> Pier> On Tue, May 13, 2008 at 12:30 PM, pier carteri <pier.carteri at gmail.com> wrote:> > 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> > >> > >> >> _______________________________________________> reportlab-users mailing list> reportlab-users at reportlab.com> http://two.pairlist.net/mailman/listinfo/reportlab-users
_________________________________________________________________
Una cena tra amici? Cerca il ristorante con Live Search Maps
http://maps.live.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20080513/494af2a1/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PRIMOPDF.py
Url: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20080513/494af2a1/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LISTA IDENTIFICATIVI.pdf
Type: application/pdf
Size: 2158 bytes
Desc: not available
Url : <http://two.pairlist.net/pipermail/reportlab-users/attachments/20080513/494af2a1/attachment.pdf>


More information about the reportlab-users mailing list