powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Передать параметры!!!
1 сообщений из 1, страница 1 из 1
Передать параметры!!!
    #33945845
ustya
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Здравствуйте, Уважаемые!!!

Подскажите как передать параметры (Object[] strReportParamArray,out Object[] nReportIDs) (функия VisualBasic)) в функцию?

RwxReportErrors RwxAddExtReport(string strReport,
DateTime tdateExec,
string strUserName,
string strGASTheme,
bool bCreateMultiple,
Object[] strReportParamArray,
out Object[] nReportIDs) (функия VisualBasic)

Adds an extended report for processing using multiple value parameters

bool bCreateMultiple: Boolean flag to indicate multiple report creation per parameter value pair combination or merging of all retrieved report information into a single report
Object[]strReportParamArray: Specially formed one dimensional string array of report parameter values in the form:

INPUT sample data: number of rows is equal to number of parameters

"@param1=value11;value12;value13;";
"@param2=value21;value22;";

where @param1,@param2 are the global parameters configured for the specific report

string strReportParams: Report parameter string
out Object[] nReportIDs: Returned array of Report IDs for the newly added report(s)

Returns: Operation error code (RwxReportErrors)

The report will be submitted for execution and it will not be executed immediately. The method call will return without waiting for the report to execute. The returned integer array of nReportIDs can be used to query for the report status and/or cancel the submitted report.

Как передать параметры Выделенные жирным шрифтом в функцию.

Я передаю так
Dim A, reportID As Variant – описываю переменные

A = Array("@NewParameter = 02", "@KodEnerg = 01", "@Kod_sost = 02001") – присваиваю массив множества

rwxClass.RwxAddReport(reportName, Now, "S-TALGAT\ASPNET", "", True, A, reportID) – передаю в функцию

Выдает ошибку Wrong number of arguments or invalid property assignment (Error 450)
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / Visual Basic [игнор отключен] [закрыт для гостей] / Передать параметры!!!
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]