Preprocess ToC??? #2102
gjblajian
started this conversation in
Ideas / Requests
Replies: 1 comment 1 reply
-
updateTableOfContents ultimately calls updateTableOfContent in the attached file |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@dolanmiu, we are having some issues sending our docx generated documents to a third party because the ToC's have not rendered. SyncFusion's library [https://github.com/SyncfusionExamples/Word-TOC-Examples/blob/master/Create-TOC/Console-App-.NET-Core/Create-TOC/Program.cs] can somehow preprocess the ToC such that you are not prompted to update fields when you open the document. After a cursory look at their code in Visual Studio, it is clear they are tracking the dictionary for the ToC in the WordDocument class but their processing of the ToC when calling
document.UpdateTableOfContents();
does not seem to be reliant on .NET. I was wondering if you might be able to replicate this capability in docx?Beta Was this translation helpful? Give feedback.
All reactions