I am trying to display a Crystal Report (new version for VS2012) as a .pdf file (instead of in the Crystal Report Viewer which does not work in IE10 -- refer to my earlier posting). I have followed the code recommended in many places to accomplish this and am constantly receiving an error message of Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.
The code I am using is the same code recommended for earlier versions of Crystal Reports in many forums across the Internet.
ReportDocument doc = new ReportDocument(); doc.Load("Reports/CrystalReport.rpt"); CrystalReportViewer1.ReportSource = doc; CrystalReportViewer1.RefreshReport();
The error message is being received on the second line of code ("doc.Load......").
The system is Windows 8, VS2012, C#, web application/project.
The full error message and stack trace are below.
Any ideas?
Thanks in advance for any assistance!
Lynn
Line 17: {
Line 18: ReportDocument doc = new ReportDocument();Line 19: doc.Load("Reports/CrystalReport.rpt"); Line 20: CrystalReportViewer1.ReportSource = doc;
Line 21: CrystalReportViewer1.RefreshReport(); |
Source File: c:\VS2012_TelerikReporting\Telerik1\Default4.aspx.cs Line: 19
Stack Trace:
[COMException (0x80041811): Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.] CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +138 CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +546 [CrystalReportsException: Load report failed.] CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +647 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1800 CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +180 Default4.Page_Init(Object sender, EventArgs e) in c:\VS2012_TelerikReporting\Telerik1\Default4.aspx.cs:19 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnInit(EventArgs e) +92 System.Web.UI.Page.OnInit(EventArgs e) +12 System.Web.UI.Control.InitRecursive(Control namingContainer) +134 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +489 |