[reportlab-users] Table, SPAN and splitlast

rj-reportlab at arsynet.com rj-reportlab at arsynet.com
Wed Jan 16 11:09:30 EST 2008


Hello,

I'm new to Reportlab and I tried a draw a simple table with 3 columns
and I want the last row to be SPANned over the 3 cols.
So I first added ('SPAN', (-1, 0), (-1,-1)) to the table style, but I
discovered that if the table was split over multiple pages, the last row
of each page was spanned...
After looking in the manuals I found that I could use 'splitlast' so I
changed the style to
('SPAN', (0, 'splitlast'), (-1, 'splitlast')) and got an error whose
traceback ends with

File "C:\Python24\lib\site-packages\reportlab\platypus\frames.py", line 141, in _add
w, h = flowable.wrap(aW, h)
File "C:\Python24\lib\site-packages\reportlab\platypus\tables.py", line 978, in wrap
self._calc(availWidth, availHeight)
File "C:\Python24\lib\site-packages\reportlab\platypus\tables.py", line 518, in _calc
self._calcSpanRanges()
File "C:\Python24\lib\site-packages\reportlab\platypus\tables.py", line 763, in _calcSpanRanges
for y in xrange(y0, y1+1):
TypeError: cannot concatenate 'str' and 'int' objects

Can you help me with that ?




More information about the reportlab-users mailing list