Hi Jürgen,
Thank you for contacting Syncfusion support.
At present, you can retrieve all the fields in a Word document, only by iterating the document elements (sections, paragraphs, tables). We have considered your suggestion to “retrieve all the fields from a Word document without iterating the document elements” as feature request.
Could you please share us some more details about your requirement on retrieving all the fields from a Word document? This will be helpful for us to define the requirement of this feature in line with your use case.
1. What is the purpose of retrieving all fields in the word document?
2. What are the types of fields, you are using and expecting to retrieve from the Word document?
We have already exposed
FormFields property in
WTextBody to retrieve the form fields in respective section. If your use case is to get Form fields (Text Form field, CheckBox Form field, DropDown Form field), then you can make use of the following sample which illustrates accessing and manipulating form fields.
For your reference, we have prepared a sample to retrieve the fields in a Word document by iterating the document elements which can be downloaded from the following link.
Please let us know if you have any questions.
Regards,
Dilli babu.