Skip to main content
November 14, 2023
Question

How to generate a Word document with a dynamic document summary

  • November 14, 2023
  • 4 replies
  • 0 views

Is it possible to generate a Word document with a dynamic summary of the document using native or plug-in functions?

My need is to create a paragraph in the Word document for each item in a list. If there are many paragraphs, it would be useful for the user who will have access to this document to have a summary that shows the link and page for each dynamically inserted paragraph.

I'm now using the DOCX From Dynamic Template smart service of the Advanced Document Templating plugin which allows me to dynamically generate paragraphs but I can't get the summary to update when the document is generated. So the summary remains empty.

If I use the template with the summary already updated, the generation of the document fails because the logic of the list is on the dynamic construction of the paragraphs.

Thanks

4 replies

mathieud0001
November 15, 2023

When you say "summary", are you referring to a table of contents by any chance?

November 15, 2023

Yes, I mean exactly that.

mathieud0001
November 15, 2023

AFAIK, I don't think this is possible.

social.msdn.microsoft.com/.../open-xml-sdk-v2-faq-part-1