Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / January 2007

Tip: Looking for answers? Try searching our database.

Report Parameters from Application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
robin9876@hotmail.com - 25 Jan 2007 16:53 GMT
>From a .Net application can pass the parameters to a SQL 2005 report
from within code without the parameter options being visible within the
SQL report viewer component?
Sebastian - 31 Jan 2007 20:42 GMT
1. Create an array of parameters
   ReportParameter[] parameters = new ReportParameter[1];
2. Insert your parameter in the array
   parameters[0] = new ReportParameter("ParamDPId",1);
3. Add the array to your report
   lr.SetParameters(parameters);

where lr is an instance of LocalReport()

Signature

.seb
http://sgomez.blogspot.com

> >From a .Net application can pass the parameters to a SQL 2005 report
> from within code without the parameter options being visible within the
> SQL report viewer component?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.