
Resources resources = project. A Gantt chart, commonly used in project management, is one of the most popular and useful ways of showing activities (tasks or events) displayed against. Project project = appclass.ActiveProject Create file in folder call temp with the name of projectĪ($".mpp", PjFileFormat.pjMPP, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing) The option is set via double clicking on the timescale to bring up the Timescale window and clicking on the 'Non-working time' tab. String fileName = + ("yyyy MM mm ss ").Trim() Application appclass = new Application() Ī(false, missing, missing) Create the Application object to interact with MS project Var ProjectData = srv.Project_Get_Details(projectuid, Guid.Empty, false, false, Guid.Empty, App_.Id, null, out ErrorCode, out ErorMessage)

I want to make the file open and focus automatically on the entire project of the Gantt chart. I succeeded but I had a small problem with the Gantt chart after finishing create MPP file I found the time scale of the Gantt chart in the present date so I make scroll to the first date time's task to find resources and predecessors of tasks

I'm trying to create an MPP file using C#.
