总之,我遵循了Here和tring的指导,将SAP Crystal Reports for Enterprise和SAP Crystal Server 2013 SP1 Client Tools集成在一起工作。所有这些安装都没有问题。但是我从Sap Crystal Reports for Enterprise构建的每个报告都不能加载到我的测试vs2010 web项目中。
所以我想知道这两者是否能很好地合作。因为我的测试代码非常简单。但不幸的是,它失败了。我已经研究了几天了。但并不能让它正常工作。下面的代码和异常显示在.Please帮助中,用于检查它。
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)我是不是错过了什么或者做错了什么?如果有的话,请告诉我。谢谢。
发布于 2013-11-15 22:12:54
我会尝试安装Crystal Reports for Visual Studio运行时,然后再尝试。可在此处下载:http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_7.exe
https://stackoverflow.com/questions/19996380
复制相似问题