[reportlab-users] Table computation

Ulrich Wisser reportlab-users@reportlab.com
Fri, 28 May 2004 10:31:03 +0200


Hello,

I still have trouble with my table layout. I need to cut my table, so it 
will only occupy one frame. I have a list of 100+ entries (description 
with amount). I need to dispaly a part of this list that fits into the 
frame. It should look like (list has n entries):

		description#1   amount#1
                 ...
    		description#m   amount#m

		remaining	sum(amount#m+1 ... amount#n)

		total           sum(amount#1   ... amount#n)

The problem is, description can be very long, in fact it maybe span 2 or 
three lines. How can I compute the table height, so I do not insert too 
many rows?

Thanks

Ulrich