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

Free Support Forum - aspose.com

Exception when try to open Word document


We use Aspose for converting MS Word document to PDF.
When I try to convert the attached document I get the “The document appears to be corrupted and cannot be loaded. —> System.NullReferenceException:” exception.

The source code I use is pretty simple and obvious:
var doc = new Document(“C:\GreenSmoke.DOCX”);
var pdf = doc.Save(“C:\GreenSmoke.pdf”, SaveFormat.Pdf);

The exception occurs in the first line when loading the document.
The document itself looks good in Word.

We use Aspose.Word for .NET version

Please assist.
Hi Eyal,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13253. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Aspose support,

Is there any progress?
We still waiting for solution.

Hi Eyal,

Thanks for your inquiry. This issue has been resolved in Aspose.Words for .NET 16.2.0. Please use Aspose.Words for .NET 16.2.0 and let us know if you have any more queries.

Thank you. It works.

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

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