I'd like to create projects and tasks in XML format to MS Project. I've got the schema, and generated the classes from that(Project, Task, Resources, etc.), I can serialize it, but I'dont know the way what properties I need. I tried it manually, but it didnt work. MS Project hasn't shown my tasks. I need only very simple tasks, with start and end date.
1 Answer
The Microsoft Project XML schema is quite complex and awkward to use, particularly if your requirements are simple. You may find it helpful to look at using MPXJ. This provides a standard API which can read and write various Project related file formats, including MSPDI - the Micrsoft Project XML format. A sample file included in the distribution (MpxjCreate) illustrates the basic attributes you need to populate in order to create tasks, resources and resource assignments. The sample is written in Java but the library ships with a .Net version, and the code will be virtually identical in both cases.
Jon
p.s. Disclaimer: I maintain MPXJ