开发者

Get the displayed fields of a MS Project file

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜