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
close icon

Delete Fields

Hi,
How can delete a Field in a document word in C# and find it position?
Thanks

1 Reply

MR Manikandan Ravichandran Syncfusion Team February 3, 2020 01:32 PM UTC

Hi Francesco,

Thank you for contacting Syncfusion.

From the given details, we suspect that your requirement is to remove all the fields in the document. Based on this we have prepared the sample application which can be downloaded from the below link.
https://www.syncfusion.com/downloads/support/forum/151181/ze/CreateWordSample1075614839

In this sample we have done the following things.
1. Load the template document.
2. Iterate each element in the word document
3. Find the fields alone these elements
4. Remove the fields from the document.
5. Close the document.

Note: Please find the input Word document in “wwwroot” folder of above sample location.

Please let us know if you have any other questions.

Regards,
Manikandan Ravichandran


Loader.
Live Chat Icon For mobile
Up arrow icon