当我在客户端服务器上部署我的项目时,我的水晶报告不起作用。如何在客户端服务器上部署水晶报表。我需要做什么,当我发布我的项目时。
protected void FillOrderByClients(DateTime FromDate,DateTime ToDate,int Accountnumber,int SearchBy,int SigDate)
{
rptClients.ReportSource = null;
int CompanyId = 1;
string path = Server.MapPath("~/Report/OrdersByClient.rpt");
reportDocument.Load(path);
DataSet ds = _activeOrdersService.GetOrderByClientsReport(FromDate, ToDate, Accountnumber, CompanyId, SearchBy, SigDate);
reportDocument.SetDatabaseLogon
(myLogOnInfo.ConnectionInfo.UserID, myLogOnInfo.ConnectionInfo.Password, myLogOnInfo.ConnectionInfo.ServerName, myLogOnInfo.ConnectionInfo.DatabaseName);
reportDocument.SetDataSource(ds.Tables[0]);
rptClients.Visible = true;
rptClients.ReportSource = reportDocument;
rptClients.DataBind();
rptClients.RefreshReport();
}