G
GregV
I'm having trouble opening an enterprise project (Server 2003) using C# via
the MSProject object model. It can't open the project. (when I just use the
<>\ it throws an exception - if I put the http:\\machine\projectserver in it
doesn't throw an exception but it returns false and the ActiveProject object
is null. Code as follows:
Microsoft.Office.Interop.MSProject.ApplicationClass app = new
Microsoft.Office.Interop.MSProject.ApplicationClass();
app.FileOpen(@"<http:\\machine\projectserver>\bb.Published", Missing.Value,
Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value,
Missing.Value, Missing.Value, Missing.Value, Missing.Value,
PjPoolOpen.pjPoolReadOnly, Missing.Value, Missing.Value, Missing.Value,
Missing.Value);
1. Where are the parameters documented if anywhere? I'm especially
interested in the UserId, DatabasePassWord, and Password params.
2. Is there another way to open an existing project residing in Project
Server for modification via the COM object model?
The app is running as a desktop so I assume its using the user credentials
for the logged in user which I can use Project Professional just fine.
Thanks
the MSProject object model. It can't open the project. (when I just use the
<>\ it throws an exception - if I put the http:\\machine\projectserver in it
doesn't throw an exception but it returns false and the ActiveProject object
is null. Code as follows:
Microsoft.Office.Interop.MSProject.ApplicationClass app = new
Microsoft.Office.Interop.MSProject.ApplicationClass();
app.FileOpen(@"<http:\\machine\projectserver>\bb.Published", Missing.Value,
Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value,
Missing.Value, Missing.Value, Missing.Value, Missing.Value,
PjPoolOpen.pjPoolReadOnly, Missing.Value, Missing.Value, Missing.Value,
Missing.Value);
1. Where are the parameters documented if anywhere? I'm especially
interested in the UserId, DatabasePassWord, and Password params.
2. Is there another way to open an existing project residing in Project
Server for modification via the COM object model?
The app is running as a desktop so I assume its using the user credentials
for the logged in user which I can use Project Professional just fine.
Thanks