Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Sat Jan 11, 2025 4:08 pm

Greetings

I am using spire.Doc for word document manipulation.

I am facing issue with track changes.

I have successfully enabled the track change using the settings as mentioned in the spire.doc api reference for python and am doing multiple manipulation in the document but they are not being reflected in the document visually like we perceive when we do the changes manually in word
While the changes are being can be seen and the option for the track change is enabled. They are not visually seen. This is the issue i am facing

All libraries and dependencies have been installed and i faced no issue what so in the installation.

Would appreciate it if someone could guide me in what the issue might be. Or is this an old issue in the library

Thank you

sharyar.khalid
 
Posts: 1
Joined: Sat Jan 11, 2025 3:47 pm

Mon Jan 13, 2025 2:50 am

Hello,

Thank you for your inquiry. When setting "document. TrackChanges=True", this property only ensure the saved document is in revision mode when opening in tools. It does not mean that all program code manipulation has the tracking revisions.
Our product is currently developing and implementing this new feature, we will provide an api to track the revision records. After you invoke it, all subsequent code operations will be presented as the revision model, the changes can be seen.
This feature record number is SPIREDOC-11061. Once a version is available, we will provide it to you as soon as possible.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1510
Joined: Wed Apr 25, 2018 3:20 am

Wed Apr 30, 2025 12:05 pm

Hello,

Thanks for your patience.
We just released the Spire.Doc for Python Version:13.4.6 which supports enabling and disabling revision tracking mode. Welcome to test.

Code: Select all
document = Document()
#Load the file from disk.
document.LoadFromFile(inputFile)
document.TrackChanges = True
document.StartTrackRevisions("user")
range = document.LastParagraph.AppendText("Revise4")
range.InsertRevision.Author = "test01"
document.LastParagraph.Text = "remove"
range.DeleteRevision.Author = "test01"
document.StopTrackRevisions()
document.SaveToFile(outputFile)


Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1510
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Doc