Hi, i use Aspose.Words 13.8.0.0 to set TrackRevisions to true and when i tried to save changes to stream i got this error:
Item has already been added. Key in dictionary: ‘3’ Key being added: ‘3’ at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at x76fe6816117c4e2b.x969176180ebcefda.x1ff8ac05a72bd9dd(Int32 x18d1054d82981887, EditableRangeEnd x2d1816cbc3a2f21e) at x76fe6816117c4e2b.x969176180ebcefda.x30b757ee5a69bf66(x969176180ebcefda x50a18ad2656e7181, Int32 x03d82212f016d5f9, Int32 x3e4b0446c1da5921) at x9e260ffa1ac41ffa.xe397b5e25a350375.x21cdf734a8c07d82() at x9e260ffa1ac41ffa.xe397b5e25a350375.x8ffe90e7fbccfccd(Int32 x65533babc4098e1c) at x9e260ffa1ac41ffa.x163859bfa28558c4.x160a0bf4de8f6bd0() at x9e260ffa1ac41ffa.x163859bfa28558c4.x8cac5adfe79bc025(x8556eed81191af11 x5ac1382edb7bf2c2) at Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)
Here is a code:
doc.TrackRevisions = true;
MemoryStream resultStream = new MemoryStream();
SaveFormat saveFormat = SaveFormat.Doc;
if (extension == “docx”)
saveFormat = SaveFormat.Docx;
if (extension == “docm”)
saveFormat = SaveFormat.Docm;
doc.Save(resultStream, saveFormat);
The issues you have found earlier (filed as WORDSNET-10013) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.