2

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 1

3

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

Sign up to request clarification or add additional context in comments.

2 Comments

Hi, As far as i can see, the write method cannot be made in .NET to create on the fly MPP file and i can't find example files anywhere

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.