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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

HasChanges question

Thread ID:





89982 Sep 12,2009 05:05 PM UTC Sep 15,2009 04:30 AM UTC ASP.NET Web Forms (Classic) 1
Tags: DocIO
David Wier
Asked On September 12, 2009 05:05 PM UTC

I'm doing a replace of text in a doc

However, I don't want to save the file, if there are no actual replacements. My code is this:
doc = New WordDocument(sFilename)
doc.Replace(sOldText, sNewText, GetCase(ck), True)

If doc.HasChanges = True Then
' I save the file here

However, doc.HasChanges always returns FALSE, even after the replacement.

How can I find out if the file has been changed (replacements have been made)?

Vijayakumar S [Syncfusion]
Replied On September 15, 2009 04:30 AM UTC

Hi David,

Thank you for posting your query.

WordDocument.HasChanges property has no effect on changes to the document that you make programmatically via Essential DocIO. The changes that you make via Essential DocIO are never tracked as revisions.

For more information on track changes in the document, please refer the following link


We prepared a sample for your requirement without using WordDocument.HasChanges, could you please have a look at the sample in the below link and let us know if this helps.


Please let us know if you have any questions.



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