C# when exec "Spire.Doc.Document.SaveToStream" goes into error with attached file (docx file with comments). The error is "System.StackOverflowException".
Instead the same file without comments works perfectly.
Can someone help me?
Thanks
Document wordDocument = new Document();
wordDocument.LoadFromFile(@"Con i commenti.docx");
MemoryStream stream = new MemoryStream();
wordDocument.SaveToStream(stream, Spire.Doc.FileFormat.PDF);
wordDocument.SaveToStream(stream, Spire.Doc.FileFormat.Docx);