Hi,
i read the MS PRoject SDK 2003, from there, the SDK said that we can add the
project without using MS Project by set reference to:
Dim prj As New Microsoft.Office.Interop.MSProject.ApplicationClass
so, i tried this by :
prj.Projects.Add(False, , False).Subject = "Project Subject"
prj.Projects.Add(False, , False).Title = "Project title"
prj.Projects.Add(False, , False).Tasks.Add.Name = "Task Name"
pprj.Projects.Add(False, , False).Resources.Add.Name = "Liu Pin
Chiang"
prj.Projects.Add.SaveAs("c:/TestingProject.mpp",
Microsoft.Office.Interop.MSProject.PjFileFormat.pjMPP, , , , , , , , , , , ,
, )
i can create the .mpp file by this, but, it opens 1 project file for each of
the "add" command.
I really don't know what to do and how to add the Project information, such
as resources, startdate, enddate and so on. the sdk is not details enough.
hope you all can help, thanks.
liu