dlofrodloh
dlofrodloh

Reputation: 1744

How to load Word Object Library properly in Visual Studio Express

I'm trying to load the Word Object Library for Visual Basic in Visual Studio Express but having some trouble.

I go to the Project menu, Add Reference, COM and check Microsoft Word 14.0 Object Library and click ok. But I still get the error "Word.application" is not defined etc. And when I type "word." there's no suggestion menu, it's not found.

Am I doing something wrong?

enter image description here

Upvotes: 0

Views: 2097

Answers (1)

Alex K.
Alex K.

Reputation: 175986

To the top of your module add;

Imports Microsoft.Office.Interop

Upvotes: 2

Related Questions