当我在后端使用oracle 10g数据库在windows server 2003上部署我的asp.net网站时.我使用sap crystal report version 13.0.2000.0它给出了错误
Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++
stack.Description: An unhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.
Run Code Online (Sandbox Code Playgroud)
来源错误:
在执行当前Web请求期间生成了未处理的异常.可以使用下面的异常堆栈跟踪来识别有关异常的起源和位置的信息.
堆栈跟踪:
[COMException (0x80041811): Unsupported Operation. …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用ASP.NET 4.0和Visual Studio 2010从我的Web应用程序运行水晶报表.我已经从SAP站点安装了以下内容(http://www.businessobjects.com/jump/xi/crvs2010 /us2_default.asp)
1)SAP Crystal Reports,Visual Studio 2010版本 - 标准EXE安装包,用于将软件安装到Visual Studio IDE中.
2)用于.NET Framework 4的SAP Crystal Reports运行时引擎(64位)
我有一个名为Reports.aspx的页面,其中我有一个水晶报表查看器控件
<CR:CrystalReportViewer ID="rptViewer" runat="server" AutoDataBind="true" />
Run Code Online (Sandbox Code Playgroud)
在Reports.aspx.cs文件中,我有以下代码:
protected override void OnPreRender(EventArgs e)
{
ReportDocument report = new ReportDocument();
var path = Server.MapPath("Reports/Sample.rpt");
report.Load(path);
report.SetDatabaseLogon("username", "password", "servername", "databasename");
rptViewer.ReportSource = report;
}
Run Code Online (Sandbox Code Playgroud)
在report.Load(path)行上,我收到以下错误:
不支持的操作.由JRC引擎处理的文档无法在C++堆栈中打开.
我怎样才能解决这个问题?