generating table of contents using word 2003 object model

asish

Member
Joined
Jan 17, 2008
Messages
20
Programming Experience
Beginner
hi, does any 1 knw how to generate a toc for a word 2003 document using the word object?....i knw there should be methods to generate that....but the word sdk has not been of much help....:(

any kind of reference or help will do z job

thanks.
 
VB.NET:
doc.Paragraphs.First.PageBreakBefore = True
doc.TablesOfContents.Add(doc.Paragraphs.First.Range)
 
Back
Top