David Lopez
David Lopez

Reputation: 141

Center a table in a word document using interop.word in C#

I've been using interop.word in C# and I want to center a table in a document, all the rows are centered but I need the whole table to be centered in my document. I just can't find the property to center the whole table in a document. I've already centered all the rows but I need the table to appear centered in my document.

Upvotes: 6

Views: 5020

Answers (1)

Priyank
Priyank

Reputation: 10623

did you try table.Rows.Alignment = Word.WdRowAlignment.wdAlignRowCenter ?

Upvotes: 10

Related Questions