We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Finding all of the checkbox, dropdown and text form fields in a document

I have a document with a mixture of dropdown and text form fields intermingled with tables and text. I've used the ChildElements and the section.Body.FormFields functionality to traverse through the document contents and it doesn't come across any of the form fields expected. How do i use the DocIO API to report on all form fields that are present in a document?

3 Replies

SK Sathish K Syncfusion Team June 10, 2014 10:01 AM UTC

Hi Apolon,

 

Thank you for your interest in Syncfusion products.

 

The property section.Body.FormFields will surely list out all of the form fields supported by DocIO. Kindly check your input document that whether you have inserted form fields or content control fields. Currently preservation support only available for content controls fields and you can’t access those items from the input Word document because they have been handled internally. Kindly refer the below UG documentation link to know about how to insert form fields in your input document through MS Word as well as using DocIO.

 

http://help.syncfusion.com/ug/windows%20forms/docio/default.htm#!documents/formfield.htm

 

We have prepared a sample to illustrate how to access the form fields available in the Word document with a test case document which includes form fields. Please do find the sample from below link and let us know if this helps you.

 

Sample link:

http://www.syncfusion.com/downloads/support/directtrac/125833/Sample-1681429592.zip

 

Please let us know if you have any other questions.

 

Regards,

Sathish



AI Apolon Ivankovic June 11, 2014 10:14 AM UTC

Yes they are content controls.

Could you clarify your following sentence:
"Currently preservation support only available for content controls fields and you can’t access those items from the input Word document because they have been handled internally"

What do you mean by "preservation support"?
Are content control fields supported at all?
If not, are there any plans to as they are very useful.


SK Sathish K Syncfusion Team June 12, 2014 01:24 PM UTC

Hi Apolon,

 

Thank you for your update.

 

If any content controls available in the input Word document then that will be preserved as it is in the output Word document (this is not applicable for cross conversions like "Doc to Docx" or "Docx to Doc"). Here you can’t edit or modify the contents of the content controls.

 

Currently DocIO doesn't have support to manipulate content controls. We have logged this as a feature request in our database. We will implement this feature in any of our upcoming releases. We usually have an interval of at least three months between releases. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity. We will update you when this feature has been implemented.

 

You can track the status of this feature through our Feature Management system:

http://www.syncfusion.com/support/directtrac/features/WF-7081

 

Please let us know if you have any other questions.

 

Regards,

Sathish


Loader.
Live Chat Icon For mobile
Up arrow icon