Hi,
I am creating application to read a word TOC from a word document and create content control for the TOC items by program. After I seen couple posts in the forum I could able to read TOC. The problem I am facing is I am getting first three items book marks out of 19. I think Document.Range.Bookmarks not returning hidden book marks. could you please help on this with sample?
I Used following code to get the TOC item and reading content.
Document doc = new Document(@"C:\Toc\TestFile.docx");
DataTable tocTable = TableOfContentsToDataTable(doc, 0);
ArrayList extractedNodes = ExtractContent(bookmarkStart, bookmarkEnd, false);
Document doc2 = GenerateDocument(doc, extractedNodes);
Regards
Sathiyamurthy A
Merrill Corporation