[reportlab-users] Spanning two columns with a single paragraph

David Hughes reportlab-users@reportlab.com
Wed, 16 Jul 2003 12:20 +0100 (BST)


I'm having trouble getting a paragraph inside a table to span more than 
one column. I have tried hard-coding a paragraph into the 'test' section 
at the end of Tables.py and it works OK, but in my own application, the 
paragraph still wraps inside the first column, although dummy data 
associated with the second column does disappear. I have traced it through 
to:

	self._drawCell(cellval, cellstyle, (x, y), (width, height))  
	
in Tables.py, at which point "width" is the correct value equal to the sum 
of the two column widths. But  "cellval" is a Paragraph instance that has 
already got an internal width attribute that is equal to the original, 
first column width and, presumably, that is taking precedence.

Any ideas how to get round this, please?

Regards,

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