Показать сообщение отдельно
Старый 24.06.2008, 15:00   #75  
RumataEstor is offline
RumataEstor
очами вижу
 
84 / 19 (1) ++
Регистрация: 29.04.2008
Адрес: Москва
Так как в Аксапте нет метода получить тип без создания объекта typeof(Microsoft.Dynamics.ReportingServices.ParameterValue) (или я плохо искал), то придется создавать экземпляры необходимых классов.
Надеюсь, такой вариант прокатит:
X++:
Microsoft.Dynamics.ReportingServices.ParameterValue _ParamVal =
    new Microsoft.Dynamics.ReportingServices.ParameterValue();
System.Type TParamVal = _ParamVal.GetType();
System.Array EmptyParams = CLRInterop::staticInvoke("System.Array",
    "CreateInstance", TParamVal, 0);
Microsoft.Dynamics.ReportingServices.DataSourceCredentials _DSCred =
    new Microsoft.Dynamics.ReportingServices.DataSourceCredentials();
System.Type TDSCred = _DSCred.GetType();
System.Array EmptyDSCred = CLRInterop::staticInvoke("System.Array",
    "CreateInstance", TDSCred, 0);
System.Array params = ReportingServices.GetReportParameters("Zzz", "", false,
    EmptyParams, EmptyDSCred);

Последний раз редактировалось RumataEstor; 24.06.2008 в 15:54. Причина: Забыл объект указать