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