How to pass parameters in web dynamically?
How to pass parameters in web dynamically?
hello,
I am trying to pass parametrs dynamically from textboxes to report,
I am unable to do it.. can anybody suggest??
I am trying to pass parametrs dynamically from textboxes to report,
I am unable to do it.. can anybody suggest??
How to pass parameters in web dynamically?
you can pass textbox values in reports like
report.Dictionary.Variables["varCust_ID"].Value = textboxname.text
here varCust_ID is your variable name,you have to create that variable in stimulsoft designer
report.Dictionary.Variables["varCust_ID"].Value = textboxname.text
here varCust_ID is your variable name,you have to create that variable in stimulsoft designer
How to pass parameters in web dynamically?
I am doing like this:
StiReport report = StiWebReportFx1.GetReport();
report.Compile();
report.CompiledReport.DataSources["DataSource1"].Parameters["@abc"].ParameterValue = Int32.Parse(TextBox1.Text);
StiWebViewerFx1.Report = report;
But when i use cache mode of reportviewer it displays the result same again and again... and if i use standard or RenderOnlyCurrentPage then it works but paging,%age level or download file not working and if change resolution of report, it refreshes the page and blank report displays as textbox value is not passed....
so what i do??
StiReport report = StiWebReportFx1.GetReport();
report.Compile();
report.CompiledReport.DataSources["DataSource1"].Parameters["@abc"].ParameterValue = Int32.Parse(TextBox1.Text);
StiWebViewerFx1.Report = report;
But when i use cache mode of reportviewer it displays the result same again and again... and if i use standard or RenderOnlyCurrentPage then it works but paging,%age level or download file not working and if change resolution of report, it refreshes the page and blank report displays as textbox value is not passed....
so what i do??
How to pass parameters in web dynamically?
Hello,
Please check the following code:
Thank you.
Please check the following code:
Code: Select all
StiReport report = StiWebReportFx1.GetReport();
report.DataSources["DataSource1"].Parameters["@abc"].Value = TextBox1.Text;
report.Compile();
StiWebViewerFx1.Report = report;
How to pass parameters in web dynamically?
Thanks,
But can anybody tell me how we can do it in mvc(dynamically)????
But can anybody tell me how we can do it in mvc(dynamically)????
How to pass parameters in web dynamically?
And your code is wrong...
report.Compile();
comes before:
report.CompiledReport.DataSources["DataSource1"].Parameters["@clientid"].ParameterValue = Int32.Parse(TextBox1.Text);
if not then it wil give error that: object reference not set to instance...
Thanks.
report.Compile();
comes before:
report.CompiledReport.DataSources["DataSource1"].Parameters["@clientid"].ParameterValue = Int32.Parse(TextBox1.Text);
if not then it wil give error that: object reference not set to instance...
Thanks.
How to pass parameters in web dynamically?
Hello,
We replied to you in the following forum topic:
http://forum.stimulsoft.com/Default.aspx?g=posts&t=6361
Thank you.
We replied to you in the following forum topic:
http://forum.stimulsoft.com/Default.aspx?g=posts&t=6361
Thank you.