Error in Microsoft.Office.Interop.Word

C

chovatia.jaydeep

Hi,

I want to hide Menubar/Toolbar in Word/Excel 2007. I followed steps
given in the link: http://msdn2.microsoft.com/en-us/library/aa338202.aspx

Following above linke, i created Add-In project in Visual Studio 2005
and added code mentioned here in the application

Line 1: Imports Microsoft.Office.Core
Line 2: Imports Word = Microsoft.Office.Interop.Word

Import statement of Line1 works fine, but Import statement of line 2
shows green line saying "Namespace or type specified in the imports
Microsoft.Office.Interop.Word does not contain any public member or
cannot be found".

I also tried installing PrimaryInteropAssembly.exe available at:
http://www.microsoft.com/downloads/...aa-bed4-4282-a28c-b864d8bfa513&DisplayLang=en
but couldn't get any success.

Any suggestion on the same would be appreciated.

Thank You,
Jaydeep
 

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