Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Starting Member

1 Posts

Posted - 05/02/2013 :  12:55:54  Show Profile  Reply with Quote
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";
ReportParameter[] reportParameterCollection = new ReportParameter[1];
reportParameterCollection[0] = new ReportParameter("active", "1"); this.rptViewer.ServerReport.SetParameters(reportParameterCollection);
rptViewer.ShowParameterPrompts = false;

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
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000