Показать сообщение отдельно
Старый 19.06.2008, 08:06   #43  
KingPeas is offline
KingPeas
Участник
Аватар для KingPeas
 
163 / 35 (2) +++
Регистрация: 09.01.2007
Адрес: Россия, Новосибирск
Thumbs up ОЛЕ...ОЛЕ-ОЛЕ-ОЛЕ Россия-молодец
Цитата:
Сообщение от RumataEstor Посмотреть сообщение
Так что, похоже, нужно писать:
X++:
ReportingServices.set_WebServiceUrl('http://ax-dev/ReportServer/ReportService2005.asmx');
Очередной рубеж пройден) Как хорошо когда есть толковый знаток).
Вроде прорыв, создал массив и сохранил в него значения... и опять руки опускаются(
X++:
static void RSGetReportParameter2(Args _args)
{
    Microsoft.Dynamics.ReportingServices.ReportingService2005   ReportingServices = new Microsoft.Dynamics.ReportingServices.ReportingService2005();
    Microsoft.Dynamics.ReportingServices.CatalogItem            catalogItem;
    Microsoft.Dynamics.ReportingServices.ItemTypeEnum           itemTypeEnum;
    Microsoft.Dynamics.ReportingServices.ReportParameter        reportParameter;
    System.Net.ICredentials cred = CLRInterop::staticInvoke("System.Net.CredentialCache", "get_DefaultCredentials");

    System.Exception                                            exception;
    System.Array                                                ar;
    str         name;
    int         i,arLength;
    str         type;
    ;

    try
    {
        ReportingServices.set_WebServiceUrl('http://ax-dev/ReportServer/ReportService2005.asmx');
        ReportingServices.set_Credentials(cred);
        ar = ReportingServices.ListChildren('/',true);
        arLength = ar.get_Length();
        for (i=0; i< arLength; i++)
        {
            catalogItem = ar.GetValue(i);
            name = catalogItem.GetHashCode(); // Также доступны GetType(); toString(); Equals()
            info (strfmt('%1 - %2',i,name));

        }
        info (name);
    }
    catch (Exception::CLRError)
    {
        info('Ошибка .NET');
        exception = CLRInterop::getLastException();
        name = exception.ToString();
        info (name);

    }

    info('Конец');

}
Смотрю через Reflector и вижу кучу интересующих меня свойств у CatalogItem и все они public как то: Path, Name и т.д. Но доступа к ним нет почему то?
Что делать ума не приложу. Посмотрел в SystemDocumentation ничего по смыслу подходящего нет(
__________________
Хочу IQ как ICQ, ну или хотя бы ICQ как IQ.