Click here to Skip to main content
15,888,157 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
SQL
Hi,
I have a Stored procedure in MYSQL contain two date parameters(@FromDate,@ToDate). See Here my requirement is, In SSRS it will display one date parameter in preview tab. when i click Date it will display that Date only. 
How can i achieve this Scenario?
please Can anyone explain briefly?

Regards, 
Samba
Posted
Comments
Anh Nguyen Trong 21-Jul-13 23:08pm    
if you need the step by step the sample with store procedure in MySQL or MS SQL? MS SQL is ok i can give it to you

1 solution

Let try Herer:

C#
string Server = "http://hn-sd-0100-wk/ReportServer_SQL2008R2";//ReportServerTextBox.Text;
            string reportProject = "/ReportProjectContact/";
            string reportName = "ReportContact";
            reportViewer1.ProcessingMode = ProcessingMode.Remote;
            ServerReport serverReport;
            serverReport = reportViewer1.ServerReport;
            serverReport.ReportServerUrl = new Uri(Server);
            serverReport.ReportPath = reportProject + reportName; //FolderTextBox.Text + ReportNameTextBox1.Text;
               
            
// You can add Parameter if need

ReportParameter[] rp = new ReportParameter[1]; // this is number of parameter that you need to do
// You can add more parameter. 2, 3, ...
rp[0] = new ReportParameter("OrderID", txtOrderID.Text);
// rp[2] == new 
// rp[3] == new 
reportViewer1.ServerReport.SetParameters(rp);
reportViewer1.RefreshReport();


Hope that useful for you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900