Interop & Project 2003

  • Thread starter Thread starter Herb
  • Start date Start date
H

Herb

Can someone point me in the direction of documentation for Office Interop?

Specifically, Microsoft.Office.Interop.MSProject. Mainly what I need is a
command set, programming documentation.

I need to be able to open and edit Project 2003 files which are Published to
a Project Server.

I know a limited set of methods, but documentation would help immensely.

Thanks,
 
Hello stullhe104

You may start with the "Client-Based Development" section of the MSDN
article:

Getting Started: Developing with Project 2003.
http://msdn.microsoft.com/en-us/library/aa168347.aspx
(if some links in the page turn invalid on your side, you may want to
search the subject in the box "Search MSDN with Live Search" at the top of
the page)

Office 2003 Object Model is documented at:
http://msdn.microsoft.com/en-us/library/aa209914.aspx

A general introduction of Office solution development is at:
http://msdn.microsoft.com/en-us/library/hy7c6z9k.aspx

Although I do not find articles dedicated to MS Project automation, there
are several ones for Word and Excel:
http://support.microsoft.com/kb/301982
http://support.microsoft.com/kb/302084
http://support.microsoft.com/kb/316384
http://support.microsoft.com/kb/316383
The principle is the same for Microsoft Project. The only difference is at
the object model.

To facilitate the development based on Project's object model, we usually
record a VBA macro in Project (Tools ->Macro->Record a new macro), do the
operations (e.g. open and edit a Project 2003 file which was published to a
Project server in this case), and write the .NET code according to the
record result.

Last, our managed newsgroup support service can serve as a good resource
when you come across any problems during the development. If you have any
other questions or concerns, please DON'T hesitate to tell me.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
I will investigate these links, but I find that most refer to Word or Excel
and not MSProject.

--
stullhe104


"Jialiang Ge [MSFT]" said:
Hello stullhe104

You may start with the "Client-Based Development" section of the MSDN
article:

Getting Started: Developing with Project 2003.
http://msdn.microsoft.com/en-us/library/aa168347.aspx
(if some links in the page turn invalid on your side, you may want to
search the subject in the box "Search MSDN with Live Search" at the top of
the page)

Office 2003 Object Model is documented at:
http://msdn.microsoft.com/en-us/library/aa209914.aspx

A general introduction of Office solution development is at:
http://msdn.microsoft.com/en-us/library/hy7c6z9k.aspx

Although I do not find articles dedicated to MS Project automation, there
are several ones for Word and Excel:
http://support.microsoft.com/kb/301982
http://support.microsoft.com/kb/302084
http://support.microsoft.com/kb/316384
http://support.microsoft.com/kb/316383
The principle is the same for Microsoft Project. The only difference is at
the object model.

To facilitate the development based on Project's object model, we usually
record a VBA macro in Project (Tools ->Macro->Record a new macro), do the
operations (e.g. open and edit a Project 2003 file which was published to a
Project server in this case), and write the .NET code according to the
record result.

Last, our managed newsgroup support service can serve as a good resource
when you come across any problems during the development. If you have any
other questions or concerns, please DON'T hesitate to tell me.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello stullhe104,

I did not find many articles about MSProject automation. In my last reply,
the first two links are for MSProject, and the rest are for Office general
or Word/Excel Automation. Although MSProject does not have as many articles
as Excel/Word does, the principle is the same:

Step1. We build up the project environment for MSProject
(see the Integration with managed code section of
http://msdn.microsoft.com/en-us/library/aa168347.aspx. What we need to do
is to add Microsoft Project Object Library to the references of the project
when the PIA is installed)

Step2. We record a VBA macro in MSProject which can help us write the
automation if we are not familiar with MSProject Object Model.

Step3. Understand the VBA macro code according to the Object Model
http://msdn.microsoft.com/en-us/library/aa209914.aspx

Step4. Convert the VBA code to VB.NET code in the .NET project.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
Thanks for the reply. I have printed and will read the first link. The second
link also looks promising.

I guess I will relent and try the VBA macro route.

Thanks.
 
Back
Top