Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 mpxj 库中的 ProjectWriter 编写一个 xml 文件。
我能够编写数据,但我想在编写数据的同时创建一些自定义字段。
你能建议如何去做吗?
您不能在 MS Project本身中“创建”自定义字段,但您可以为任务、资源或分配的内置自定义字段之一提供别名:
ProjectFile file = new ProjectFile(); file.setTaskFieldAlias(TaskField.TEXT1, "My New Name");
当您将 TEXT1 添加到显示任务数据的表中时,该列应显示为“我的新名称”。
这仅在您将数据写入 MSPDI (XML) 文件时受支持。