所有,我都按照这里的指南并试图整合SAP Crystal Reports for Enterprise
并SAP 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)
我错过了什么或做错了什么?如果有请告诉我。谢谢。