I have been able to successfully generate word document (.docx) using OpenXML SDK 2.5.
Can we directly update the page numbers in TOC of the generated document using OpenXML SDK I found few similar queries on Stack overflow.
[https://stackguides.com/questions/28348550/how-to-generate-table-of-contents-using-openxml-sdk-2-5]
[https://stackguides.com/questions/9762684/how-to-generate-table-of-contents-using-openxml-sdk-2-0/]
One of the ways is to have users click yes to update the Table of Contents on a modal dialog when they open the document the first time. Is there a way to avoid this modal dialog and user intervention but still update page numbers on opening the document the first time?
Thanks, Gagan