如何使用asp.net
C#
但不在页面上显示记录为水晶报表发送多个参数值
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();
}
任何建议都会欢迎我错了。谢谢
我已经显示了stackoverflow的链接,但是