Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to open word document in my vb project. I give add reference to Microsoft.office.12.0 object library.But the Microsoft.office.interop.word is cannot imported to my project. it displays with red ink line. how to import word document in my project.i am working with visual studio 2005. please anyone can help me

Thanks in Advance
Posted
Comments
Karthik Harve 7-Dec-11 4:15am    
does ms office installed in your machine..??

If you look at MSDN[^] (and select the VS2005 version) you will see that it supports V11, not V12 - I suspect that office 12 requires a higher version of the .NET framework than VS2005 supports. Consider upgrading to 2008, or 2010 (express editions if necessary) or downgrade Office interop to V11.
 
Share this answer
 
add reference to Microsoft.office.11.0 object library....:)
 
Share this answer
 
Has MSOffice 2007 is installed on your machine ?

Please check Microsoft.Office.Interop.Word reference exist in C:\windows\Assembly

Word Automation using VB.NET - Part I[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900