Results 1 to 4 of 4

Thread: [RESOLVED] how to align a table in Word VB.net 2008

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Apr 2008
    Posts
    778

    Resolved [RESOLVED] how to align a table in Word VB.net 2008

    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:
    Code:
     oTableHdng.Cell(1, 1).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
    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.Range.Paragraphs.Alignment = WdParagraphAlignment.wdAlignParagraphCenter
    Last edited by MrtforCode; Oct 1st, 2009 at 05:09 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width