We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to accept entire RevisionGroups based on index using .NET

Hi there,

So currently we have the ability to get the RevisionGroup from a specific Revision, however a use case we’d be quite interested in would be to accept entire RevisionGroups based on index similar to how you can accept via the reviewing pane in Word. Is this something that can be done via alternative means, or would it be possible to add this?




Could you please share some more detail about your requirement along with input and expected output documents? We will then provide you more information on it.


How I implemented it manually is:

var groupHash = reqObject.Document.Revisions[index].Group.GetHashCode();
List<Revision> revisions = groupedRevisions.Where(x => x.Group.GetHashCode().Equals(groupHash)).ToList();
revisions.ForEach(x => { if (accept) x.Accept(); x.Reject(); }); 

A way of doing this natively would be incredibly helpful.



It is nice to hear from you that you have found the solution of your query. Please let us know if you have any more queries related to Aspose.Words.