Word crashes when trying to make a new document

The code

Dim word As New Aspose.Word.Word

Dim doc As Document = word.Open(“c:\temp\asposeDoc.doc”)

If the file exists, the error message tells me that. If the file does not exist, the message reflects that as well. I’m not sure, but I think that this is the correct way to use the aspose api.

Any help is appreciated. Thanks

Not sure what do you mean.

This way you can only open an existing file. You cannot create a new file like this. Aspose.Word only creates files on disk when you save.

If you want to create an empty document the easiest is to create a blank document in MS Word and open it in Aspose.Word. Alternativaly open any document in Aspose.Word and call Sections.Clear.