[reportlab-users] Re: Getting the number of lines in a frame

Saketh Bhamidipati saketh.bhamidipati at gmail.com
Tue Aug 22 08:43:34 EDT 2006


On 8/22/06, Andy Robinson <andy at reportlab.com> wrote:
>
> Saketh Bhamidipati wrote:
> >
> > I need to create documents with headings on the left side and text on
> > the right side, the headings aligned with the text.
> >
> >     Perhaps you should say what you try to achieve - there
> >     may be different ways to achieve your goals without the
> >     need to count the number of lines.
> >
> >     Henning
> >
>
> Henning is right.  Pretend it's HTML!
>
> Each time you need to create a new heading, make a two-cell table with
> one row.  Put a heading paragraph in the left cell, and as many
> paragraphs as you want in the right cell.  Then add this to the story.
>
> This will also encourage the page breaks to happen in nice places, since
> a single table cell is never split.
>
> Look at reportlab/test/test_platypus_tables.py and its output for
> examples of code to build tables.
>
> Hope this helps,
>
>
> Andy Robinson
> CEO/Chief Architect
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
That sounds a lot better than what I was doing. I'll try the table method,
then.

Thanks for your help.

-Saketh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20060822/8c8b826e/attachment-0001.html


More information about the reportlab-users mailing list