Free Support Forum - aspose.com

Nullreferenceexception when creating new document

hi i’m new to aspose, im just checking out the evaluation version at the moment…
problem im having is this code alone:

Document doc = new Document();

causes a nullreferenceexception to be thrown. is this a restriction of the evaluation version? I can open an existing word document and put some content in it however…

another problem i have noticed is that aspose doesnt like documents saved as word documents from open office… doubt this is something you will likely fix but thought i might bring it to your attention Big Smile

cheers

gaz

Hi,

Please download the latest hotfix Aspose.Word 1.9.9, this is fixed there. For more info see http://www.aspose.com/blogs/roman.korchagin/archive/2004/11/25/258.aspx

If you email the documents that Aspose.Word does not like to me to word@aspose.com we will see what we can do.

hi, cheers for the response it works well now. don’t worry about the open office functionality, it’s not something i need just thought i’d let you know.

thanks for your help
gaz