Unprotect disable TrackRevision

Hi,

i use following code with Aspose.Words 11.11:

Document doc = new Document();
doc.TrackRevisions = true;
doc.Unprotect();

Unfortunately the TrackRevisions has been disabled by Unprotect.

It is a new behavior or a bug ?

Are there any other settings which were initialized or disabled by Unprotect ?

Kind regards,
Guido

Hi Guido,

Thanks for your inquiry. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-7715 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved. We apologize for your inconvenience.

Please use the following code snippet as a workaround. First get the value of Document.TrackRevisions property after loading the document and set it back after calling Document.Unprotect method as shown below.

Document doc = new Document(MyDir + "Test10.docx");

Boolean blnTrackRevisions = doc.TrackRevisions;
doc.Unprotect();
doc.TrackRevisions = blnTrackRevisions;
doc.Save(MyDir + "out.docx");

The issues you have found earlier (filed as WORDSNET-7715) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.