Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aspose-com-gists/dc02a9b036a3fe37a0be1b0784bd074c to your computer and use it in GitHub Desktop.

Select an option

Save aspose-com-gists/dc02a9b036a3fe37a0be1b0784bd074c to your computer and use it in GitHub Desktop.
How to Open MPP File in Excel using Aspose.Tasks for Python
import aspose.tasks as tasks
# Load the input Project file
project = tasks.Project("project.mpp")
# Save as CSV
project.save("output.csv", tasks.saving.SaveFileFormat.CSV)
import aspose.tasks as tasks
# Load the source MPP file
project = tasks.Project("project.mpp")
# Save the project data as Excel XLSX
project.save("project-to-xlsx.xlsx", tasks.saving.SaveFileFormat.XLSX)
import aspose.tasks as tasks
# Load the MPP project file
project = tasks.Project("project.mpp")
# Save as Spreadsheet2003 XML format
project.save("project-data.xml", tasks.saving.SaveFileFormat.SPREADSHEET2003)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment