-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Column widths in MS Word #360
Copy link
Copy link
Open
Description
Hi,
I have following table in my document;
table = self.add_table(rows=len(array), cols=4)
table.columns[0].width = Cm(3)
table.columns[1].width = Cm(11)
table.columns[2].width = Cm(3)
table.columns[3].width = Cm(3)
for i, x in enumerate(array):
table.cell(i, 0).text = 'Foo'
table.cell(i, 1).text = 'Foo'
table.cell(i, 2).text = 'Foo'
table.cell(i, 2).paragraphs[0].paragraph_format.alignment = WD_ALIGN_PARAGRAPH.RIGHT
table.cell(i, 3).text = 'Foo'
table.cell(i, 3).paragraphs[0].paragraph_format.alignment = WD_ALIGN_PARAGRAPH.RIGHT
If I open the document in Apple Pages, all column widths are correct but not on MS Word. Am I missing something?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels