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

Free Support Forum - aspose.com

Can't save doc file


I'm using Aspose.Words.15.3.0
I have an error while save document with SaveFormat.Doc.

Code sample:
using (var stream = new MemoryStream(DocumentsResources.File))
var doc = new Document(stream);
doc.Save("test.doc", SaveFormat.Doc);

System.IO.EndOfStreamException : Unable to read beyond the end of the stream.
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadUInt32()
at . (Byte[] )
at ..ctor(Stream, SizeF)
at . (Stream )
at .(Stream , )
at . ​ (BinaryWriter )
at .(BinaryWriter )
at .(BinaryWriter )
at .(BinaryWriter , BinaryWriter , Boolean )
at ​ .()
at ​ . ()
at ​ . ​ ​ ( )
at Aspose.Words.Document(Stream, String, SaveOptions)

Hi Oleg,

Thanks for your inquiry. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-12101. 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.

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

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