[reportlab-users] Tabular Form w/Platypus

Sebastian Ware sebastian at urbantalk.se
Fri Oct 12 13:14:36 EDT 2007


You can't just add text, you need to add flowables. Story is a list
of flowables.

12 okt 2007 kl. 18.35 skrev Rich Shepard:


> def ecoRun():

> e = ecoTable()

> # e.SetStyle('formStyle')

> normal = ParagraphStyle('styleSheet')

> story = []

> story.append("Economic Component Pairs")


You would probably want to try story.append(Paragraph("Economic
Component Pairs", normal))


> story.append(ecoTable)

> SimpleDocTemplate('ecoForm.pdf').build(story)



To learn more about how things work, take a look in the ReportLab
User Guide and Graphics Guide. I learnt the basics there. Also, take
a look at the tests. They aren't easy to comprehend, but do help if
you have some patience :)

good luck

Mvh Sebastian



More information about the reportlab-users mailing list