[pyar] duda con Reportlab

ariel.glez.m ariel.glez.m en gmail.com
Jue Ago 11 17:33:12 ART 2011


Mas o menos esto me resuelve el problema

data = [['Total','Numero']]

t = Table(data)
t.setStyle(TableStyle([('ALIGN', (1,1), (-1,-1), 'LEFT')]))

Pero la tabla siempre me sale en el centro no logro que se dibuje
hacia la izquierda




On Aug 11, 11:57 am, Ariel González Martín <ariel.gle... en gmail.com>
wrote:
> Saludos lista tengo este codigo
>
> story.append(Paragraph(escape('Total' + ' ............' +
> str(cant_s)),styles["Normal"]))
> story.append(Paragraph(escape('Satisfechas' + ' ............' +
> str(cant_ss)),styles["Normal"]))
> story.append(Paragraph(escape('No Satisfechas' + ' ............' +
> str(cant_sn)),styles["Normal"]))
>
> Me devuelve este resultado
>
> Total ............ 2
> Satisfechas ............ 1
> No Satisfechas ............ 1
>
> Como puedo mejorar eso para que me quede de esta forma.
>
> Total                     2
> Satisfechas           1
> No Satisfechas      1
>
> --http://web2py-latino.blogspot.com/
> _______________________________________________
> pyar mailing list p... en python.org.arhttp://listas.python.org.ar/listinfo/pyar
>
> PyAr - Python Argentina - Sitio web:http://www.python.org.ar/
>
> La lista de PyAr esta Hosteada en USLA - Usuarios de Software Libre de Argentina -http://www.usla.org.ar



More information about the pyar mailing list