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

Tracking changes

Why do I not see the changes that are made in the search/replace-function. The changes are done in the document, but I don't see them in colors back and TrackChanges = true

I hope someone can help me

I have the following code:

Dim document As New DLS.WordDocument
document.Open("c:\temp\test.doc", FormatType.Doc)
document.TrackChanges = True

Dim sSql As String = "Select search, replace from conversion"
Dim myConnection As New SqlConnection(strConn)
Dim myCommand As New SqlCommand(sSql, myConnection)
myConnection.Open()

Dim objDataReader As SqlDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
Do While objDataReader.Read()
Dim nAantal As Integer = 0
Dim sSearch As String = objDataReader.Item("search").ToString
Dim sReplace As String = objDataReader.Item("replace").ToString

nAantal = document.Replace(sSearch, sReplace, True, True)
Loop
myConnection.Close()

Dim sBestandNew As String = "c:\temp\test_.doc"
document.Save(sBestandNew, FormatType.Doc, Response, HttpContentDisposition.InBrowser)



1 Reply

BP Bhuvaneswari P Syncfusion Team January 2, 2009 01:33 PM UTC

Hi Aart,

Thank you for your interest in Syncfusion products.

Currently we don't have support to mark or create the Track Changes. We can only preserver, accept or reject changes in document where "change" marks are already set (generated with MS Word).

Please let me know if you need any further details.

Best Regards,
Bhuvana



Loader.
Live Chat Icon For mobile
Up arrow icon