Programming in Visual Studio 2005 for Microsoft Project

U

Uriy

Ask me please! Whether there is a possibility to write the program for
MSProject on Visual Studio 2005, not using built in editor Visual Basic in
Microsoft Project.
 
J

Jim Aksel

Absolutely. Your additional questions on this topic are best posted in the
Developer Forum.

Here is a quick overview, it can be done in VB or C#. One of the MVPs, Rod
Gill, recommends using VB since you can get a good jump on your effort by
coding a Macro in VBA and then pasting it over.... I think it's a good idea
since some of the work gets done for you.

You will need to add references to the Microsft Office 12.0 Object Library
and the Microsoft Project 12 (or 11) Library.

Here's a snipet to get you started in VB.NET:

Public pjApplication As New Microsoft.Office.Interop.MSProject.Application
pjApplication.FileOpenEx("reference to path of mpp file")

pjApplication.Visible=True
Dim tsk as Microsoft.Office.Interop.MSProject.Task

For Each tsk in Microsoft.Office.Interop.MSProject.ActiveProject
'Code like Mad
Next



--
If this post was helpful, please consider rating it.

Jim
It''s software; it''s not allowed to win.

Visit http://project.mvps.org/ for FAQs and more information
about Microsoft Project
 
J

Jim Aksel

You are welcome. Thank you for the feedback.
--
If this post was helpful, please consider rating it.

Jim
It's software; it's not allowed to win.

Visit http://project.mvps.org/ for FAQs and more information
about Microsoft Project
 

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