I am using Reportlab to generate the report card. Report card is basically a big table object. Some of the table cells need to be wrapped, especially the title and comments, and I also need bold specific elements.
To wrap both the bold and the ability to meet both, I'm using paragraph objects in the table. In my table many needs of these elements have been aligned vertically to the 'middle', but the paragraph alignment and my text draws on the lower part of the cell.
How can I raise my paragraph within a table cell?
I have to ask: Have you tried the table style VALIGN: MIDDLE?
Something like this:
t = table (data) t. Stystyle (table style) ([('VALIGN', (-1, -1), (- 1, -1), 'middle')])
(ReportLab User Guide More details in Section 7.2 of the above)
If it does not, then your paragraph should be the full height of the object cell, and internally below alliance.
Can you please post a small sample that reproduce the problem?
Comments
Post a Comment