[reportlab-users] Dynamic Tables

Tim Roberts timr at probo.com
Mon Jan 7 13:01:35 EST 2008


Brandon Rich wrote:

> I am hoping to create an invoice template that can be used over and over

> repeatable. I was looking around online, and found that the flowable

> element paragraph can accept certain XML tags.


Yes, but it only accepts a small set of pseudo-HTML tags: basically <b>,
<i>, <u>, <super>, <sub>, <font>, and a special <onDraw>. It is NOT a
general-purpose HTML renderer by any means.

The great benefit of open source software is that you can go into the
source code and look this up.


> I have yet to see an

> example of the <table> tag being one of them. Is there an example of

> this anywhere that you know of?

>


No, that's not the way it's done. Platypus supports a separate Table
flowable -- that's how it's done. Your paragraphs get added to the
story as Paragraph flowables, and your tables get added as Table flowables.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the reportlab-users mailing list