Forum Discussion

HowardPitchon's avatar
HowardPitchon
Copper Contributor
Jun 24, 2024

Generated TOC, when using RD field code, yields every page as page 1

I have 37 separate Word documents. Word version is Microsoft Word for Microsoft 365 MSO (Version 2405 Build 16.0.17628.20006) 64-bit.

I have a separate document to generate a table of contents (TOC) using the Reference Document (RD) field code to reference my 37 other documents.

This worked great until recently when I generate the TOC, all headings came in correctly and every one of them showed page 1 in the TOC.

I can create a single document with all my files and generate the TOC with correct page numbers with no issue. It is using the RD to create a separate TOC file where the page numbering bug rears its ugly head.

Any help is greatly appreciated.

 

    • HowardPitchon's avatar
      HowardPitchon
      Copper Contributor

      Doug_Robbins_Word_MVP Unfortunately I cannot as these are proprietary and confidential to my company. I will say that I can create one simple document with multiple pages and a separate TOC document (both files attached) with the following field codes:

      { RD "Chapter.docx" \f }

      { TOC CHAPTER \O "1-4" \H \Z \T " }

      You will notice that the Chapter TOC generates the proper page numbers; the Document TOC shows all page numbers as 1.

       

      I just don't get it. 🙂

      • HowardPitchon Instead of 

         

        { TOC CHAPTER \O "1-4" \H \Z \T " }

         

        you need to use

         

        { TOC CHAPTER.docx \O "1-4" \H \Z \T " }

         

        Then, after updating the TOC, you will get

         

         

  • hi-ho's avatar
    hi-ho
    Copper Contributor

    In my environment, it was restored with the latest version (version 2410 build 18129.20116). Please give it a try.

    • solovyei's avatar
      solovyei
      Copper Contributor

      It looks as if that update is only available on the "current channel." If I can't get our IT to see if they can push the new version to us anyway, we'll have to wait until the monthly channel update comes up. Looks like it might be soon.

      Thanks for the update. Hope it resolves it for us as well!

Resources