Hi all,
I want to develop a Project to manipulate Word documents using C# 2005.
I do not find the list "Microsoft Office 2003 Project" in my VS 2005.
Should I install any other add-ins for this?
Tomy
Hi all,
I want to develop a Project to manipulate Word documents using C# 2005.
I do not find the list "Microsoft Office 2003 Project" in my VS 2005.
Should I install any other add-ins for this?
Tomy
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
TomyPosted Oct 14, 2007, 3:22 PM
Thanks you for your kind reply.
But what I intended is :
When we click on the "New project", we get the templates like "Windows Application", "Web Application" etc.
In this way, there is a template available to be displayed like "Microsoft Office Project ". It is Managed code.
Thanks for your reply.
Tomy
Rafael AltungyPosted Oct 14, 2007, 9:16 AM
First yo must add the Microsoft Office Object Library. To do it:
1.- Select Add Reference in the Project Menu of Visual Basic
2.- In the COM tab select the Microsoft Object Library and Acept
3.- At the begining of the program insert "Imports Word = Microsoft.Office.Interop.Word" (this is for Word, I haven´t used for Project but I think it will ne similar)
4.- In the code insert Dim oWord As New Word.Aplication = CreateObject("Word.Aplication") (Again this is for Word)
5.- With the oWord object you can wotk with Word
Best regards