How can use MS Project objects(Integration) in ASP.NET.

M

Mungara

Hi,
I have to develop a ASP.net Application by using MS Project 2003. how can i
use the MS Project Objects in ASP.net.
could u pls help me regarding this.
Thank u
Aravind
 
P

PeterNZ

Hi Aravind,

sorry, i am not an ASP.Net expert. But I did Office Project Automation from
a Console App in C#. First step, set a Reference to "Microsoft Office 11.0
Object Library". Second step, add "using Microsoft.Office.Interop.MSProject"
to your class. You can then use the MS Project Object Model.

Third step (recommended) Download the Microsoft Project 2003 SDK Kit from
here:
http://www.microsoft.com/downloads/...8C-8BCA-4DB9-8753-178C0D3099C5&displaylang=en

This will give you the VBA Documentation. You will find a description of the
objects methods etc. Please note, all optional parameters of method calls in
the VBA code will have to be replaced with a dummy object. You use
System.Reflection.Missing.Value for this. A FileOpen call would look like
this:
projApp.FileOpen("<" + config.SqlDataSourceName + ">\\" +
ProjectName,false, Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value, config.SqlUser,config.SqlPassword,"MSProject.odbc",Missing.Value, MSProject.PjPoolOpen.pjPromptPool,"dummy",Missing.Value,true,
Missing.Value);

All "Missing.Value" are for optional parameters you don't use.

HTH

Cheers

Peter
 

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