Reputation: 19823
I have a small asp.net web application that allows you to create Projects and Tasks and apply estimates, work, etc to them. I am writing an export feature to allow you to download them as an MS Project file. It's really just an XML file.
I will be writing an import feature afterwards, which allows you to reschedule Task start and stop dates, the assigned resources, etc, but not modify estimates or applied hours. That will be handled solely by the web application.
I am trying to figure out the best architecture to do this. Here are a couple ideas I'm toying with.
Thanks, any help is appreciated.
Upvotes: 2
Views: 641
Reputation: 5698
Instead of rolling your own, use MPXJ which provides a handy set of .Net as well as Java libraries. It reads all types of MS Project formats and writes to .MPX and the newer XML based file formats.
It's a robust library based on POI and will save you a lot of work.
Upvotes: 0
Reputation: 8129
I would use 3. or 1b. This gives you the chance to change your internal structure at any time without complications.
1b. would be: Create a Exporter Class which is able to create XMLon the fly. But do not locate that exporter in your Project class but in a separate one. This is also a additional layer of abstraction.
Upvotes: 1