[英]Reading .mpp file from Python 2.7
I need to read Microsoft Project Plan (.mpp file) from Python application running on Python 2.7.我需要从在 Python 2.7 上运行的 Python 应用程序读取 Microsoft 项目计划(.mpp 文件)。
Not getting ANY resources or pointers on the web for the same.没有在网络上获得任何资源或指针。
Any ideas?有任何想法吗?
Example:例子:
import win32com.client
doc = 'C:\\Project1.mpp'
try:
mpp = win32com.client.Dispatch("MSProject.Application")
mpp.Visible = 1
try:
mpp.FileOpen(doc)
proj = mpp.ActiveProject
print proj.BuiltinDocumentProperties(11), ",", proj.BuiltinDocumentProperties(12)
except Exception, e:
print "Error", e
mpp.FileSave()
mpp.Quit()
except Exception, e:
print "Error opening file",e
Python package of Aspose.Tasks Cloud manipulate MS Project & Oracle Primavera files without any dependency. Aspose.Tasks Cloud 的 Python 包可以在没有任何依赖的情况下操作 MS Project 和 Oracle Primavera 文件。 It is a paid API but free trial plan provides 150 API calls per month.
这是一个付费 API,但免费试用计划每月提供 150 个 API 调用。
PS: I work as support developer at Aspose. PS:我在 Aspose 担任支持开发人员。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.