MPP文件中的企业自定义字段 [英] Enterprise Custom Fields in MPP File

查看:229
本文介绍了MPP文件中的企业自定义字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一种方法来获取保存在MPP文件中的企业字段列表。根据文档,PjField枚举从188743680到188745020用于任务相关字段,但是当我在一个
的文件中使用FieldNameToFieldConstant方法时,它返回的数字从188776449开始。

I am trying to find a way to get the list of enterprise fields saved in an MPP file. According to the documentation the PjField enumeration goes from 188743680 to 188745020 for task related fields, but when I use the FieldNameToFieldConstant method in one of my files it comes back with numbers starting at 188776449.

这是企业自定义字段的起始编号吗?对于我的解决方案,我不能使用FieldNameToFieldConstant方法,因为我将要使用的每个文件都有不同的字段名称。这是我现在正在使用的代码,但我不确定
它是否适用于所有情况:

Is this the starting number for Enterprise Custom Fields? For my solution I cannot use the FieldNameToFieldConstant method because every file that I'm going to use has different field names. This is the code that I'm using right now, but I'm not sure that it will work in every case:

      ; for(int i = 188745064; i< 188777000; i ++){

        var field = projectApp.FieldConstantToFieldName((PjField)i);

        if(field!= @"< Unavailable>")

          Console.WriteLine(field);

      }

      for (int i = 188745064; i < 188777000; i++) {
        var field = projectApp.FieldConstantToFieldName((PjField)i);
        if (field != @"<Unavailable>")
          Console.WriteLine(field);
      }

非常感谢您提前。

最好的问候,

Israel Pereira

Israel Pereira

推荐答案

任务级别企业自定义字段范围是从188776448到188841983。

The task level enterprise custom field range is from 188776448 to 188841983.





这篇关于MPP文件中的企业自定义字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆