KB 301659

M

Mark Irvine

Hi,

I'm trying to work through the following KB article

http://support.microsoft.com/?kbid=301659

I downloaded the Office XP PIA's, referenced the Word Object Library and
attempted to declare some variables, however each time I try to compile the
project I get an error:

Word.Application wrdApp;
D:\visual_studio\WordSample\Form1.cs(12): A namespace does not directly
contain members such as fields or methods

I have also added
using Word = Microsoft.Office.Interop.Word;

Has anyone got this code to work?

Mark
 
M

Mark Irvine

Hi,

Sorry, got it working - forgot to add the Office dll's to the GAC.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top