Refreshing field values / table caption

Posted by: david.sheppard on 16 August 2023, 1:20 am EST

  • Posted 16 August 2023, 1:20 am EST

    I am placing a caption with a SEQ field above tables in a document. For example:

    Table {SEQ * ARABIC}. table description

    Unfortunately, when I open the document in word the number won’t appear unless I select the entire document (ctrl+A) and refresh all the fields using the F9 key. For example the above code looks like:

    Table. table description

    instead of like

    Table 1. table description

    How can I get the caption numbers to appear when I open the word document

  • Posted 17 August 2023, 11:05 pm EST

    Hi David,

    We are not sure how you are actually using SEQ Field with GcWord Library. Could you please share a small sample replicating this behavior? So, that we can investigate further and assist you accordingly.

    Also, SEQ field name is missing. Please try with below example:

    {SEQ myseq \* Arabic}

    Regards,

    Nitin

  • Posted 17 August 2023, 11:20 pm EST

    Sorry. That was a typo in my post. Below is the code I am using.

    My word document has a mail merge field that defines the location of a table. I search through the document for complex fields and then insert a table, then the caption that goes above the table.

    Paragraph1 = ComplexField1.GetRange().Paragraphs.Insert("Table. “, InsertLocation.Before)

    Paragraph1.GetRange().ComplexFields.Add(“SEQ Table * ARABIC”, result:=TempString)

    Paragraph1.GetRange().Runs.Add(” " & Caption)

    Paragraph1.Format.Alignment = ParagraphAlignment.Center

  • Posted 20 August 2023, 8:24 pm EST

    Hi,

    We have replicated this behavior at our end. This seems like a bug. So, we have escalated it to the development team. Will get back to you once we have any update from them.[Internal Tracking Id - DOC-5678]

    Regards,

    Nitin

  • Posted 21 August 2023, 3:54 pm EST

    Hi,

    As per the development team,

    MS Word can show only the field result.

    Right now filling the field result is user’s responsibility.

    So the only way at this moment to fill the field result or use MS Word “Update fields” feature which writes the field result automatically.

    We apologize to inform you that currently this is a limitation which will be removed when a internal task to update the fields[Internal tracking Id - DOC-5138]

    is done, rather than ‘by design’.

    Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels