Web report parameters

Stimulsoft Reports.NET discussion
Post Reply
iomega55
Posts: 29
Joined: Sat Sep 23, 2006 1:37 am

Web report parameters

Post by iomega55 »

Hi:
First at all, thank you for response all our questions.

The most of the reports we have at this moment are involved with parameters, more clear stored procedures with parameters.

For example I have a web form named MyWebForm.aspx with 2 textboxes and 1 button. So how can I pass the value from the textboxes to my report.

I see http://forum.stimulsoft.com/Default.aspx?g=posts&t=105, but it could be helpul if you can give a short sample

Can you please share a sample with stored procedures with parameters as the datasource of the report, when the parameters are sent via the click event from a web form :)

Thanks.
iomega55
Posts: 29
Joined: Sat Sep 23, 2006 1:37 am

Web report parameters

Post by iomega55 »

I found this:
http://forum.stimulsoft.com/Default.aspx?g=posts&t=84

One question is, how must I create my report in designer if my datasource is a stored procedure with parameters. I saw the tutorial, but I suppose it uses a stored procedure with no parameters.

Please dont forget the sample ;).

Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Web report parameters

Post by Vital »

Please see SqlParameters sample project from DEMO pack. This sample project created for winforms, but you can use this way in Web too without changes.

Thank you.
iomega55
Posts: 29
Joined: Sat Sep 23, 2006 1:37 am

Web report parameters

Post by iomega55 »

Thanks.

But I'm sorry

How must I create my report in designer if my datasource is a stored procedure with parameters. I saw the tutorial, but I suppose it uses a stored procedure with no parameters.

I think I need to create the params for the datasource, and give them some value just for the datasource creation, and the rest is the way you mention in the sqlparameter sample. Is this correct?

this is the stored procedure who receives a parameter.

- execute TableA_GetByKey @Key

- Create @Key parameter

- when I run the process it returns the statement executed with sucesss

- but when I retrieve columns it returns I must declare scalar value @Key
remus
Posts: 24
Joined: Wed Aug 30, 2006 7:38 pm
Location: Australia

Web report parameters

Post by remus »

Hi
I also would like a clear example of using stored procedures with stimulreport.
It would be greatly appreciated.
Thanks
Philip Andrews
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Web report parameters

Post by Vital »

Please check following Flash Demo: How to use Sql Parameters in Web

Thank you.
Post Reply