public MppProject LoadProjectFile(string filePath) { MppProject project = new MppProject() { ProjectFilePath = filePath }; MpxjReader.ProjectReader reader = MpxjReader.ProjectReaderUtility.getProjectReader(filePath); Mpxj.ProjectFile projectFile = reader.read(filePath); Mpxj.ProjectProperties projectProperties = projectFile.ProjectProperties; project.Header = new MppProjectHeader() { UniqueId = projectProperties.UniqueID, Name = projectProperties.Name }; PopulateTasks(projectFile, project); PopulateResources(projectFile, project); return(project); }
/// <summary> /// Abre un archivo de proyecto de Microsoft Project /// </summary> /// <param name="path">Ruta al archivo .MPP</param> public MicrosoftProjectExtractor(string path) { AbstractProjectReader reader = new MPPReader(); mpp = reader.Read(path); }