Free Support Forum -

"Type Expected" Problem in Featured Demo Version


I am trying to evaluate the product, but on compilation I am getting the following “Type Expected” error, on the underlined word object below. All other declarations are fine and I have imported the necessary reference.

Dim word As word = New Word()

Any help will be greatly appreciated. Thanks!

Is your code in some namespace? I’m not sure what VB.NET does and I consider it strange. I had similar problems when I have my code in some namespace. If I remove the namespace from the code, it seems to work fine.

For example, the demo code is like this (note there is no namespace declared):

Imports Aspose.Word

Dim word As word = New word()