• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Document Generation: Table of Contents does not update

Community Beginner ,
May 11, 2022 May 11, 2022

Copy link to clipboard

Copied

In my testing of the Document Generation service, I have found that a Table of Contents specified in the Word template does not get updated after the JSON data merge and before the PDF is rendered. Is this a limitation of the service or is there a way to get the Table of Contents to update?  

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 12, 2022 May 12, 2022

Copy link to clipboard

Copied

Can you share an example of your source Word doc and data so I can confirm? If so I can file a bug.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 12, 2022 May 12, 2022

Copy link to clipboard

Copied

Thanks for looking into this!

Word doc and sample output are attached.

Data:

 

{
"customerName": "Kane Miller",
"customerVisits": 100,
"itemsBought": [
{
"name": "Sprays",
"quantity": 50,
"amount": 100
},
{
"name": "Chemicals",
"quantity": 100,
"amount": 200
}
],
"totalAmount": 300,
"previousBalance": 50,
"lastThreeBillings": [
100,
200,
300
],
"photograph": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88h8AAu0B9XNPCQQAAAAASUVORK5CYII="
}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 13, 2022 May 13, 2022

Copy link to clipboard

Copied

So, from what I can see, TOCs in Word are *not* automagical. Ie, if you add a new heading in the Word client, it will *not* update the TOC, you have to do it yourself, so I think this is expected.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 13, 2022 May 13, 2022

Copy link to clipboard

Copied

Where do we log feature requests as this would be very useful to have? I have used another Word merge API in the past and it had options to update TOC and other Fields (equivalent to Ctrl+A then F9 in Word).    

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 13, 2022 May 13, 2022

Copy link to clipboard

Copied

Yall can't - I can - and I'm doing so now.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 23, 2023 Jun 23, 2023

Copy link to clipboard

Copied

any updates on this would be appreciated. Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 23, 2023 Jun 23, 2023

Copy link to clipboard

Copied

It has not been added. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 21, 2023 Sep 21, 2023

Copy link to clipboard

Copied

@bruceb92825582  Can you please elaborate on the experience you got with another Word merge APIs. Does it open the word with a pop-up with message -"this document contains fields that may refer to other files. Do you want to update the fields in this document?". 

CC @Raymond Camden 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 19, 2023 Oct 19, 2023

Copy link to clipboard

Copied

LATEST

No message is popped-up.  See example from Documentation on Aspose site: https://docs.aspose.com/words/net/working-with-table-of-contents/#update-table-of-contents

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources