crystal报告如何在asp.net的客户端服务器上部署。

时间:2012-08-30 17:26:23

标签: c# asp.net visual-studio-2008 crystal-reports crystal-reports-2008

当我在客户端服务器上部署我的项目时,我的水晶报告不起作用。如何在客户端服务器上部署Crystal报表。当我发布我的项目时,我需要做什么。

 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();
}   

1 个答案:

答案 0 :(得分:2)

您需要在服务器上安装crystal Reports运行时。

Here is a link to the SAP downloads page for the version of Crystal included in Visual Studio 2010。如果您需要不同的版本,请搜索SAP网站(祝您好运,这很痛苦)。