Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to generate TOC (table of contents) in Word document?

Contents DOCUMENT Table TOC word
0
Posted

How to generate TOC (table of contents) in Word document?

0

Open XML SDK 2.0 does not have this feature supported. But you can generate a small TOC through Word app, and reflect the TOC parts with Document Reflector component in Open XML SDK Productivity Tool to see how to generate a TOC programmatically. For more detailed information, please refer to: forum discussion thread 1, forum discussion thread 2.

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.