[reportlab-users] Page two more narrow than page one???

David Hughes reportlab-users@reportlab.com
Wed, 22 Jan 2003 10:55 +0000 (GMT Standard Time)


> The code below will cause the following traceback if the
> table is too long to fit in one page.

Hi Magnus,

I had the same problem with the very first table I created and ISTR it was 
because it was actually a bit wider than the margins I had set. For some 
reason it lets you create a table bigger than the available width, but 
only if it fits onto one page.

I put it down to the fact that the only place where the table width is 
checked against the available width in table.py is:

    def split(self, availWidth, availHeight):
        self._calc()
        if self.splitByRow:
            if self._width>availWidth: return []
            return self._splitRows(availHeight)
        else:
            raise NotImplementedError

but I could be completely wrong! I expect that when the experts are sober 
again you will get the definitive answer ;-)

Regards,

David Hughes
Forestfield Software Ltd
www.forestfield.co.uk