SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Passing parameter from windows appln to SSRS
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Narayanan
Starting Member

1 Posts

Posted - 05/02/2013 :  12:55:54  Show Profile  Reply with Quote
Hi,
I am very new in SSRS. I want to passing parameter from windows

appln to SSRS.

-> select * from dbo.Employee where isActive = @active

in my report.

-> in VS 2010
rptViewer.ServerReport.ReportServerUrl = new Uri(@"http://localhost/ReportServer");
rptViewer.ProcessingMode = ProcessingMode.Remote;
rptViewer.ServerReport.ReportPath = "/Custom Report/Custom Tempalte1";
rptViewer.RefreshReport();
ReportParameter[] reportParameterCollection = new ReportParameter[1];
reportParameterCollection[0] = new ReportParameter("active", "1"); this.rptViewer.ServerReport.SetParameters(reportParameterCollection);
rptViewer.ShowParameterPrompts = false;
rptViewer.ServerReport.Refresh();

I want to pass parameter(active) to '1' but it is not working for me.
what is wrong this . please kindly help me.

Thanks & Regards
P.Narayanan.
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000