Please start any new threads on our new site at http://forums.sqlteam.com. 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
 
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
 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  
 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.12 seconds. Powered By: Snitz Forums 2000