We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
如果您有兴趣使用 Microsoft Project 可以使用的文件格式,您可能会发现 MPXJ 很有用。
我有兴趣了解您正在从中导出数据的规划包,因为我正在逐步扩展 MPXJ 支持的数据源范围(包括 Planner、Primavera 等)。
干杯!
乔恩
If you are interested in working with the file formats which can be consumed by Microsoft Project, you may find MPXJ useful.
I'd be interested in hearing about the planning package you are exporting data from as I'm gradually extending the range of data sources supported by MPXJ (including Planner, Primavera, and so on).
Cheers!
Jon
当我做这样的事情时,我使用 COM 来访问该文件 - 它具有非常逻辑的结构,我什至能够毫无问题地写入它。所以我的建议是使用 COM 或本机 MS Project API(如果存在)。
另一种方法是将数据存储到 MSSQL 中,但我记得这种格式确实很痛苦。
另:请注意,MS Project 无法过渡性地修改文件 - 即使将其存储到数据库中也是如此。因此,如果不将整个文件加载到内存中、执行您需要的操作并将其保存回来,您将无法添加任务(例如)。
至少 200 年前的情况是这样的
When I did such thing, I used COM to access the file - it has very logical structure, I was even able to write into it without any problems. So my advice is to use COM or native MS Project API if it exists.
Alternative would be to store data into MSSQL, but as I remember the format there is a real pain.
Also: Please note that MS Project doesn't have the ability to modify the file transitionally - even when it's stored into the database. So you won't be able to add task (for example) without loading the whole file into memory, doing what you need, and saving it back.
At least that was the state of the affairs back in 200x