Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create .mpp file in java?

I am able to create .mpx file by using mpxj library in java.
I need write ( create ) .mpp file in java can any one suggest me please.

like image 471
Sree Avatar asked Jun 04 '12 05:06

Sree


2 Answers

I maintain MPXJ, and the short answer to your enquiry is that, at present, MPXJ does not write MPP files.

The main reason for this is simply that despite the effort which has gone into understanding the MPP file structure, there is still a great deal of it which is not well understood, hence it is difficult to reliably generate. The other issue is that even if I was to produce some code which could generate an MPP file, the features it could write to that file are likely to lag behind what MPXJ supports in the MSPDI file format, again due to my incomplete understanding of the MPP format.

My suspicion is that the next version of MS project (project 15? Project 2013?) may probably offer a ".mppx" file format, similar to the ".docx" etc formats used by other applications in the MS Office suite. This will be XML-based and will be more straightforward to generate than the binary MPP file format currently is... let's see what Microsoft come up with!

Jon

like image 163
Jon Iles Avatar answered Sep 28 '22 13:09

Jon Iles


Visit http://www.mpxj.org/faq/
Can I use MPXJ to write MPP files?

Not at present. Although it is technically feasible to generate an MPP   file, the knowledge we have of the file structure is still relatively   incomplete, despite the amount of data we are able to correctly extract. It   is therefore likely to take a considerable amount of development effort   to make this work, and it is conceivable that we will not be ablet  to write   the full set of attributes that MPXJ supports back into the MPP  file - simply because we don't understand the format well enough. You are  therefore probably better off using MSPDI which does support the full range  of data items present in an MPP file.  

You can

Try this: http://www.aspose.com/java/project-management-component.aspx

It writes MPP and Microsoft Project XML.

But this not free

like image 40
Rahul Bhawar Avatar answered Sep 28 '22 11:09

Rahul Bhawar