happy
happy

Reputation: 599

Align of text in reportLab with platypus table style

I am using ReportLab for generating PDF reports.

I have a table. I set a style for vertical align :

('VALIGN',(0, 0),(-1,-1),'MIDDLE')

but in some of table cells it is not correct and some of text are out of cells! why? and what is the solution?

Upvotes: 1

Views: 4295

Answers (1)

Nicholas TJ
Nicholas TJ

Reputation: 1649

The text in the table should be wrapped in Paragraph. Then they should stay within the width of the column.

Refer to this answer, there's an example code there too. Wrap text in a table reportlab?

Upvotes: 1

Related Questions