I am using following code to create the .mpp file programmatically. This create a MS project file with default fields (Task Mode, Task Name, Duration...). I want to add a custom column/fields with name "MYCustom Field" in this new created file. Can any body guide me how to accomplish this.
Microsoft.Office.Interop.MSProject.Application projectApplication = new Microsoft.Office.Interop.MSProject.Application();
projectApplication.Visible = false;
Microsoft.Office.Interop.MSProject.Project ProjectSheet projectApplication.Projects.Add(missing, missing, missing);
projectApplication.ActiveProject.SaveAs("test.mpp", Microsoft.Office.Interop.MSProject.PjFileFormat.pjMPP, missing, missing);