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

Free Support Forum - aspose.com

Cannot open word docx in aspose

When opening the attached word docx in aspose I receive "Object reference not set...." using the following code:

MemoryStream inStreamDoc = new MemoryStream(inDocument);
Aspose.Words.Document wDoc = new Aspose.Words.Document(inStreamDoc);
MemoryStream outStreamDoc = new MemoryStream();
pageCountDocument = wDoc.PageCount.ToString();
wDoc.Save(outStreamDoc, Aspose.Words.SaveFormat.Pdf);
outStreamDoc.Position = 0;
bytesOut = outStreamDoc.ToArray();

Other docs work ok.


Hi David,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 14.2.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-9840. Your request has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

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

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