Hi Marco,
Greetings from Syncfusion support.
Currently we don’t has Syncfusion libraries to read/write .mpp files. But by using Syncfusion.ProjIO.Base library, we can read/write project XML files. We have prepared a work-around solution to import the .xml files. We have prepared a webservice project for XML import option, please find the webservice project from the below location.
To run the service, we need to refer the below dll’s.
- Syncfusion.EJ
- Syncfusion.ProjIO.Base
- XMLImportingHelper
XMLImportingHelper project was used as sub project for XML web service project
And, we have prepared a sample by using the local webservice project, please find the sample from the below location.
Steps to run the sample:
1. Run the Service first.
2. Then copy the URL of the web service and replace in the sample, refer the below code snippet.
/*Import method for XML formatted file*/
function xmlImport(options) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState === 4) {
if (xmlHttp.status === 200) {
success(this);
}
else {
error(this);
}
}
}
xmlHttp.open("post", "http://localhost:58262/api/XmlImport/Import", true);
xmlHttp.send(getFormData(options));
} |
- Then run the sample.
- Perform XML import by clicking the button.
Please get back to us if you require further assistance on this.
Regards,
Pooja Priya K.