Page 1 of 1

Parameter

Posted: Tue Mar 17, 2009 6:11 am
by raj07
Can i pass multiple parameter like @StartDate,@EndDate,@StudentId,@StudentName

i want pass this four parameter and user will ask to pass parameter
is possible to pass multiple parameter... do reply soon..

Parameter

Posted: Tue Mar 17, 2009 9:19 am
by Edward
Hi.

Yes, it is possible. But only as follows:

report.Load(Server.MapPath("myReport.mrt"));
report.Compile();
report["@StartDate"] = New DateTime(2009,10,1);
report["@EndDate"] = New DateTime(2009,11,1);

stiWebViewer1.Report = report;

There is no possibility to pass all parameters at once except the using of variables from the Dictionary with string type and then parsing them "by hand" inside of the report somehow e.g. in the DeginRender event of the report.

Thank you.

Parameter

Posted: Tue Mar 17, 2009 9:19 am
by Edward
Hi.

Yes, it is possible. But only as follows:

report.Load(Server.MapPath("myReport.mrt"));
report.Compile();
report["@StartDate"] = New DateTime(2009,10,1);
report["@EndDate"] = New DateTime(2009,11,1);

stiWebViewer1.Report = report;

There is no possibility to pass all parameters at once except the using of variables from the Dictionary with string type and then parsing them "by hand" inside of the report somehow e.g. in the BeginRender event of the report.

Thank you.