Creating Tables in Word Programatically

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2009-09-21T07:19:06Z Indexed on 2010/03/25 21:33 UTC
Read the original article Hit count: 443

Filed under:
|

I am generating tables and writing them to word on the fly. I do not know how many tables there will be each time i write the data to word and the problem I am having is the second table is written inside the first cell of my first table. If there was a third table it is put inside the first cell of my second table.

Is there a way to move the cursor out of the table? I have tried creating a new range with each table also but the same thing happens.

I have also tried things like tbl.Range.InsertParagraphAfter()

The closest I came was using the Relocate method, but this only worked for two tables.

Thanks Ben

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about msword