[reportlab-users] Tabular Form w/Platypus

Sebastian Ware sebastian at urbantalk.se
Fri Oct 12 14:32:47 EDT 2007


You added a python string to the list that should contain flowables.


> story.append("Economic Component Pairs")


where you should have added a flowable such as

story.append(Paragraph("Economic Component Pairs", normal))

Mvh Sebastian


12 okt 2007 kl. 19.43 skrev Rich Shepard:


> On Fri, 12 Oct 2007, Sebastian Ware wrote:

>

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

>> list of flowables.

>

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

>

> Sebastian,

>

> Here's a good example: page 58 of the User's Guide (in the Platypus

> chapter) ends with, "To use platypus you create a document from a

> DocTemplate class and pass a list of Flowables to its build method.

> The

> document build method knows how to process the list of flowables into

> something reasonable."

>

> Isn't that what I've done above? If so, I don't understand the

> generated

> error.

>

> Rich

>

> --

> Richard B. Shepard, Ph.D. | The Environmental

> Permitting

> Applied Ecosystem Services, Inc. | Accelerators(TM)

> <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax:

> 503-667-8863

> _______________________________________________

> 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