Free Support Forum - aspose.com

Revision Count

Using 18.5 version of Aspose word.
the number of revisions using Aspose method, doc.Revisions.Count, is 30 times more than the actual revisions when compared with another document.
for example: Aspose count is 311
where as when the same document is saved to hard drive and open using word, the MS word (2010) shows 10 revisions (5 inserts, 5 deletion), which is correct.
Code:
XDoc = new Document(Location + “\” + fileName);
CompareOptions options = new CompareOptions();
options.IgnoreFormatting = true;
options.IgnoreHeadersAndFooters = true;
doc.Compare(XDoc, “Username”, DateTime.Now, options);
int count = doc.Revisions.Count;

@boris.reznichenko,

Thanks for your inquiry. Please ZIP and upload your input Word documents and Aspose.Words generated output Word document (DOCX file) here for testing. We will investigate the issue on our end and provide you more information.

aspose_revcount83 instead of 20.JPG (33.6 KB)
RevCountWord_SCRN.JPG (147.0 KB)
Document1&2.zip (43.1 KB)
Please see attached.
Attached screen shot of code output as well as the word count of revisions.
also attached sample documents I have used.
Thanks for your help.

@boris.reznichenko,

Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-16919. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

Thank you. May I ask, if you are planning to fix the issue and if yes then what could be the timeline?
Currently, as a work around, I need to save the document and then open it with word to get the right count.
Thanks,

@boris.reznichenko,

Thanks for your inquiry. Unfortunately, this issue is not resolved yet. This issue is currently pending for analysis and is in the queue. There are no estimates available at the moment. Once the analysis of this issue is completed and root cause is identified, we may then be able to share estimates with you.

Rest assured, we will inform you via this thread as soon as this issue is resolved. We apologize for your inconvenience.

@boris.reznichenko,

We have compared “Document1.docx” with “Document2.docx” by using MS Word 2016 and attached the comparison Word document here for your reference (msw-2016-compared.zip (20.1 KB)).

For this MS Word generated Word document, Aspose.Words’ Document.Revisions.Count property returns 77. Although this revision count is still more than what is shown in MS Word 2016. This is because MS Word 2016 joins/groups consecutive revisions when showing it in reviewing pane.

To mimic this Revisions grouping behavior, we will consider providing a RevisionGroups collection in Aspose.Words and after that you can use something like Document.Revisions.Groups.Count property to get the required count.

We will keep you informed of further updates.

Thank you… we will be eagerly waiting for this fix as this feature is very important to our project and that is one of the reason we started with Aspose and hope to continue to do so in future.
We appreciate your continuous support.
Thanks,

@boris.reznichenko,

We will keep you posted on further updates.

The issues you have found earlier (filed as WORDSNET-16919) have been fixed in this Aspose.Words for .NET 18.8 update and this Aspose.Words for Java 18.8 update.