Inserting a table at the end of file

P

pavan

Hi All,
I'm writing an add-in for MS Word 2003 in VS.NET 2005 and i need to
place a table at the end of the document. Can anyone help me in this
regard?
 
C

Cindy M -WordMVP-

Hi Pavan,
I'm writing an add-in for MS Word 2003 in VS.NET 2005 and i need to
place a table at the end of the document.
Declare a variable of type Word.Range and assign it to the
Word.ActiveDocument.Content

Then collapse the range (wdCollapseEnd).

Use Tables.Add and this range variable to specify the target range
where the table is to be inserted.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top