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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Delete Fields

Thread ID:

Created:

Updated:

Platform:

Replies:

151181 Jan 31,2020 02:16 PM UTC Feb 3,2020 01:32 PM UTC ASP.NET Core - EJ 2 1
loading
Tags: DocIO
Francesco
Asked On February 3, 2020 08:59 AM UTC

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

Manikandan Ravichandran [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon