Hi Magnus:
I want to write a program to publish a MS project plan file to Project
Server using MS Project. actually i know which function should be called,
below is the code i used:
[C#]
MSProject.ApplicationClass objApp = new ApplicationClass();
objApp.Visible = true
objApp.FileOpen("c:\\sanfenxian.mpp",Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,Missing.Value,MSProject.PjPoolOpen.pjPoolReadWrite,Missing.Value,Missing.Value,Missing.Value,Missing.Value);
objApp.ActiveProject.ServerURL = "
http://projectvol/projectserver";
objApp.PublishAllInformation();
But, Before MS Project publish the plan, a pop-up dialog is displayed asking
me to logon the Project Server. How can I logon to Project Server
automatically in my code?
My environment:
Client: MS Project 2003 Professional
Server: Project Server 2003