I am getting error: A document processed by the JRC engine cannot be opened in the C++ stack when I try to load a Crystal Report in the Visual Studio 2012 development environment
I have seen a number of solutions to this that involved the deployed program, but I am getting this befor I publish. The report will launch from the development environment, but will cause the error when I run the program. The system crashes at rptH.Load. I am very new at integrating Crystal Reports, and any direction will be appreciated.
Here is my controller code
Imports CrystalDecisions.CrystalReports.Engine Public Class CrystalReportsController Inherits System.Web.Mvc.Controller Public Function EmployeeQuoteLanscape() As ActionResult Dim rptH As New ReportClass() rptH.FileName = Server.MapPath("~/Content/Reprots/Quote/EmployeeQuoteLandscape.rpt") rptH.Load() rptH.SetDataSource("") Dim stream As IO.Stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat) Return File(stream, "application/pdf") End Function End Class