[reportlab-users] Problem splitting a table if one column spans all rows
Stevens, Ian
IStevens at globeandmail.com
Wed Jan 16 14:22:40 EST 2008
In your reply to "Table inside Table; is not able to split", you mention
that Reportlab doesn't split cells. Given that, what's happening here
is probably reasonable. There may be a way I can work around this given
that my table is relatively simple.
Ian.
> -----Original Message-----
> From: reportlab-users-bounces at reportlab.com
> [mailto:reportlab-users-bounces at reportlab.com] On Behalf Of
> Robin Becker
> Sent: Wednesday, January 16, 2008 1:48 PM
> To: Support list for users of Reportlab software
> Subject: Re: [reportlab-users] Problem splitting a table if
> one column spans all rows
>
> Stevens, Ian wrote:
> > I have a 2-column table where the second column spans the
> entire table:
> >
> > ('SPAN', (1,0), (1,-1))
> >
> > There may be as many as 3 rows in the first column. If there isn't
> > room for the last row, the table is split but the entire
> first column
> > is brought with it, regardless of whether there is enough
> room for its
> > contents before the split. Is there any way to force the
> contents of
> > the second column to remain in place if they will fit?
> >
> > I tried spanning the first row after the split across the table, but
> > _calcSpanRanges() crapped out as it was attempting to concat str and
> > int:
> >
> > ('SPAN', (0, 'splitfirst'), (1, -1))
> >
> > Any ideas?
> >
> > thanks,
> > Ian.
>
>
> well you have to think what is implied if one column is
> supposed to be the whole table height and then the table
> needs to split. Clearly something is broken with our
> implementation and possibly your idea of what ought to
> happen. Properly speaking the table should always refuse to
> split (some bug of ours allows it to). I can try to fix the
> bug, but I don't think you can ask me to split your table :)
> --
> Robin Becker
> _______________________________________________
> 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