We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Import .mpp file into Syncfusion Gantt

Import .mpp file into Syncfusion Gantt

I need to import the .mpp file into the gantt. Is there any solution for this? I can't find the "import" command in the Gantt page in the documentation. Exists?

1 Reply

PP Pooja Priya Krishna Moorthy Syncfusion Team November 6, 2019 03:00 PM UTC

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.    
  1. Syncfusion.EJ
  2. Syncfusion.ProjIO.Base
  3. 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)); 
} 
   
  1. Then run the sample.
  2. Perform XML import by clicking the button.
Please get back to us if you require further assistance on this. 
 
Regards, 
Pooja Priya K. 



Loader.
Live Chat Icon For mobile
Up arrow icon