无法为SAP Crystal Server 2013评估加载报告

时间:2013-11-15 08:10:37

标签: crystal-reports

全部,我正在关注Here的指南,并将SAP Crystal Reports for EnterpriseSAP Crystal Server 2013 SP1 Client Tools整合在一起。所有这些都安装没有问题。但是我从Sap Crystal Reports for Enterprise构建的每个报告都无法加载到我的测试vs2010 Web项目中。

所以我想知道这两者是否可以很好地协同工作。因为我的测试代码非常简单。但不幸的是它失败了。我一直在研究它几天。但是没有成功。代码和异常如下所示。请帮助查看它。

protected void Page_Load(object sender, EventArgs e)
    {
        ReportDocument rpt = new ReportDocument();
        rpt.Load(Server.MapPath("~/test123.rpt")); // This line failed.
        System.Console.Write("ok!!!");

    }

例外说:

Load report failed.

    Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.

    Source: CrystalDecisions.CrystalReports.Engine

       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)

       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)

       at _Default.Page_Load(Object sender, EventArgs e) in f:\Study\VS2010\WebSite3\Default.aspx.cs:line 16

       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)

       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)

       at System.Web.UI.Control.OnLoad(EventArgs e)

       at System.Web.UI.Control.LoadRecursive()

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

我错过了什么或做错了什么吗?如果有请请告诉我。感谢。

1 个答案:

答案 0 :(得分:0)

我会尝试安装Crystal Reports for Visual Studio运行时,然后尝试一下。可在此处找到下载:http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_7.exe