MPXJ:如何获取任务和资源以外的列?
我正在尝试使用 MPXJ 库从 MS Project mpp 文件中获取字段。我设法获得任务和资源。我的文件包含其他字段,如开始日期、结束日期、评论等。任何人都可以帮助我提取这些字段吗?
提前致谢 :)
I'm trying to use MPXJ library to get fields from the MS Project mpp file. I managed to to get the task and resources. My file contains additional fields like start date, end date, comments etc. Can anyone help me to extract these fields??
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能会发现查看“入门”部分中的注释很有用MPXJ 网站的。简而言之,来自 Microsoft Project 和其他项目规划工具的数据通常由顶级项目、任务、资源和分配(将任务和资源链接在一起)组成。
这几乎就是 MPXJ 表示从项目计划中读取的数据的方式。可以使用每个对象上的相关 set 和 get 方法来设置或检索每个对象的属性。例如,MPXJ 中的 Task 对象将公开 setStart() 和 getStart() 方法,以允许您使用任务开始日期。方法名称遵循 Microsoft Project 中属性所用的名称,因此希望您能轻松找到所需的属性。您可能还会发现 API 文档 在这方面也很有帮助。
You may find it useful to take a look at the notes in the "getting started" section of the MPXJ web site. To summarise briefly, data from Microsoft Project, and other project planning tools, typically consists of a top level project, tasks, resources, and assignments (which link tasks and resources together).
This is pretty much how MPXJ represents the data read from a project plan. The attributes of each of these objects can be set or retrieved using the relevant set and get methods on each object. So for example, the Task object in MPXJ will expose setStart() and getStart() methods to allow you to work with the task start date. The method names follow the names used for the attributes in Microsoft Project so hopefully you will find it stratightforward to locate the attributes you need. You may also find the API documentation helpful in this respect too.