Hello, I have a word document created in VB.net, but I need to do is center align the table (but not the contents of it). the contents has their own alignments arranged, so how to align the table itself. this way I am putting it into the middle of the page so it would look better.
I got this to align the cells:
I tried this to align the table but it doesn't do anything, besides this apply to paragraphs so that's probably not what I need but I couldn't find anything else:Code:oTableHdng.Cell(1, 1).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
Code:oTableHdng.Range.Paragraphs.Alignment = WdParagraphAlignment.wdAlignParagraphCenter




Reply With Quote