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.
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.