how can i send multiple parameter value for crystal report using asp.net C# But not display records on Page
protected void FillOrderByDrivers(DateTime FromDate, DateTime ToDate, int ShowDriver, int SigDate)
{
DateTime DriverFrom = Convert.ToDateTime(txtDriverFrom.Text);
DateTime DriverTo = Convert.ToDateTime(txtDriverTo.Text);
int DriverSegnification = int.Parse(ddlDriverSignificantDate.SelectedValue.ToString());
int Driver = int.Parse(ddlDrivers.SelectedValue.ToString());
int CompanyId = int.Parse(ddlComapny.SelectedValue.ToString());
if(reportDocument == null)
reportDocument = new ReportDocument();
reportDocument.Load(Server.MapPath("~/Report/OrdersByDrivers.rpt"));
reportDocument.SetDatabaseLogon(myLogOnInfo.ConnectionInfo.UserID, myLogOnInfo.ConnectionInfo.Password, myLogOnInfo.ConnectionInfo.ServerName, myLogOnInfo.ConnectionInfo.DatabaseName);
reportDocument.SetParameterValue("@DateFrom", DriverFrom);
reportDocument.SetParameterValue("@DateTo", DriverTo);
reportDocument.SetParameterValue("@CompanyID", CompanyId);
reportDocument.SetParameterValue("@ShowDriversUsing", DriverSegnification);
reportDocument.SetParameterValue("@SigDate", Driver);
//reportDocument.SetDataSource(ds.Tables[0]);
rptClients.Visible = true;
rptClients.ReportSource = reportDocument;
rptClients.DataBind();
rptClients.RefreshReport();
}
Any suggestion will welcome Where i am wrong . Thanks
i have show the link of stackoverflow but
Hope u need to use following code for passing values to stored procedure, and your code is for passing values to crystal reports parameter. Try using the following code.
In Button Click use the following !
Use the following code for Login Informations
Try this !!