Skip to content

Instantly share code, notes, and snippets.

@aspose-com-kb
Last active March 7, 2025 10:29
Create MPP File in Python. For details: https://kb.aspose.com/tasks/python/create-mpp-file-in-python/
import aspose.tasks as tasks
# Create a Project file
mppProject = tasks.Project()
# Add task and sub task
task = mppProject.root_task.children.add("Summary1")
subtask = task.children.add("Subtask1")
# Save output MPP file
mppProject.save("CreateMPP.mpp", tasks.saving.SaveFileFormat.MPP)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment