开发者

Get the displayed fields of a MS Project file

开发者 https://www.devze.com 2023-01-29 11:48 出处:网络
I need to get the field used in a MS project file by C#. My program need to provide users to choose one or many of them and I don\'t want to provide ALL the fileds (text1, text2, number1, ...) but the

I need to get the field used in a MS project file by C#. My program need to provide users to choose one or many of them and I don't want to provide ALL the fileds (text1, text2, number1, ...) but the field that are displayed in the project file as "Start date", "End Date" and custom fields created by the users开发者_StackOverflow for the project file.

Does anyone have an idea?

I use COM object.


I found my solution.

I can access to the fields of a task by its name with:

task.GetField(msProject.Application.FieldNameToFieldConstant(fieldName,PjFieldType.pjTask))
0

精彩评论

暂无评论...
验证码 换一张
取 消