
If you need generate pdf file from docx, it's working fine! PPr.ParagraphStyleId = new ParagraphStyleId() ) Set Heading public static Paragraph SetHeading1(this Paragraph p)
#Xmlmind w2x add table of content in every html file how to
Especially, I think youshould pay your attention to 5th one - " Shows how to use an AutoOpen macro to update the TOC whenever any document that contains a TOC is opened".Īll of that look a bit tricky, but I hope that helps. There are a few options to do that - see screen-casts 3-5 fromthe link to Eric White post I provided above.

Reflector component in Open XML SDK Productivity Tool to see how to But you can generateĪ small TOC through Word app, and reflect the TOC parts with Document Open XML SDK 2.0 does not have this feature supported.

Have a look at Fourth and Final Screen-Cast in Series on Adding/Updating the TOC in OpenXML WordprocessingML Documents by Eric White.Īccording FAQ from MSDN Forums I see that this feature is not supported:Ĩ) How to generate TOC (table of contents) in Word document?
