Pass parameters to stored procedure in report

Stimulsoft Reports.WEB discussion
Post Reply
fdot_appdev
Posts: 2
Joined: Fri Mar 09, 2012 3:22 pm

Pass parameters to stored procedure in report

Post by fdot_appdev »

I have been trying to programmatically pass the parameters to the report for weeks now with no success.

Every way under the sun has been tried and I still get this error, Procedure or function 'CONTACT_MAILINGLABEL' expects parameter '@GROUP_ID', which was not supplied. I am passing them this way.

report.CompiledReport.DataSources("CONTACT_MAILINGLABEL").Parameters(p).ParameterValue = Request.QueryString(qp)

Parameters for all of my reports are generated on-the-fly databases. This report works in Crystal Reports when passing programmatically and was not imported.

Any help would be appreciated.
Attachments
1705.Avery5160.mrt
(6.27 KiB) Downloaded 581 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Pass parameters to stored procedure in report

Post by Alex K. »

Hello,

If report compiled you can use the following code:

Code: Select all

report["@GROUP_ID"] = Request.QueryString(qp)
Thank you.
fdot_appdev
Posts: 2
Joined: Fri Mar 09, 2012 3:22 pm

Pass parameters to stored procedure in report

Post by fdot_appdev »

That was one the options that I have already tried. No parameters are being passed.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Pass parameters to stored procedure in report

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Can you please send us a sample project which reproduces the issue for analysis.

Thank you.
Post Reply