When i deployed my project on client server my crystal report not work . How to deploy crystal report on client server. What i need to do, When i publish my project .
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();
}
You need to install the crystal reports runtime on the server.
Here is a link to the SAP downloads page for the version of Crystal included in Visual Studio 2010. If you need a different version, search the SAP site (and good luck, it’s a pain).