FieldTOAEntry

Does anyone have a working example of how to add FieldTOAEntry to a document?  The FieldTOA exists in the document but there aren't any entries in the table.

                 string toatitle = "(APP, 2020)";
                WField field = paragraph.AppendField(toatitle, FieldType.FieldTOAEntry) as WField;
                string toaentry = "{CITATION APP \\I Who we are, 2020}";
                field.FieldCode = toaentry;

I've got this far, replicating what I can see in a real Word Document.  I'm assuming I'm not formatting the entries correctly so it's missing data, but there aren't any errors.  

4 Replies

HC Hemalatha Chiranjeevulu Syncfusion Team April 27, 2021 12:15 PM UTC

Hi Rob,

Thank you for contacting Syncfusion support.

From the details, we suspect that your requirement is to insert TOAEntry field in the Word document using DocIO. Essential DocIO doesn’t have support to add TOAEntry in the Word document. Currently we are analyzing on to provide support to insert TOA Entry field in Word document. We will update you with more details on 29th April, 2021

In the meantime, could you please share more details about your end requirement and the workflow that you using in your application. Also, kindly share us input Word document which used to your end. Thereby, we will analyze on your complete requirements and will share you appropriate solution for your scenario.

Please let us know if you have any other questions.

Regards,
Hemalatha C



RO Rob April 27, 2021 01:36 PM UTC

My requirement is to create a word document from separate html files.  
  • I create a table of contents
  • Then create a new document.paragraph
  • And then insert each HTML file as the chapter content 
  • Finally I want to programmatically create a table of references at the end of the document.
So I'm building a report programmatically based on seperate inputs.

When building a table of contents, AppendTOC inserts a table of contents, and then for every header field added to the document the Table of Contents gets updated.  And that works as expected.

I expected the FieldTOA to do the a similar thing for references, where it would pickup every FieldTOAEntry in the document to update itself

I've created a sample document attached


Attachment: references_test_document_e6fcb25b.zip


HC Hemalatha Chiranjeevulu Syncfusion Team April 28, 2021 07:34 AM UTC

Hi Rob,

Thank you for sharing us the details.

As mentioned earlier, currently we are analyzing on to provide support to insert TOA Entry field in Word document. We will update you with more details on 29th April, 2021.

Please let us know if you have any other questions.

Regards,
Hemalatha C




HC Hemalatha Chiranjeevulu Syncfusion Team April 29, 2021 07:09 PM UTC

Hi Rob,

Thank you for your patience.

As mentioned earlier, currently DocIO does not have support to insert TOAEntry field in Word document. We have logged this as a feature request in our database. We don’t have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features. We will let you know when this feature is implemented

The status of the feature can be tracked through below link:
https://www.syncfusion.com/feedback/24872/provide-a-support-for-toaentry-field

Please let us know if you have any other questions.

Regards,
Hemalatha C



Loader.
Up arrow icon