Hello,
I have a problem with the CrystalReportViewer or more precisely with the Load method of the ReportDocument.
My application instances a ReportDocument for the ReportSource property of the CrystalReportViewer.
cryRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument
cryRpt.Load(<path and filename>)
...
Form1.CrystalReportViewer1.ReportSource = cryRpt
In my developer system (VS 2010 professional; .NET Framework 4; CRforVS_13_0_9) everything works well.
But on the customer system (.NET Framework 4; CRRuntime_32bit_13_0_9) the Load method of the ReportDocument fails with the error
Bericht konnte nicht geladen werden.
(Translation: Report could not be loaded.)
The attached file error1.jpg contains the whole message including the stack-trace.
The inner exception of this error is
Das System kann den angegebenen Pfad nicht finden.
(Translation: The system cannot find the specified path.)
The attached file error2.jpg contains the whole message including the stack-trace.
I have tried to load the report from several locations (local directory, server path) but nothing will work.
It is absolutely sure that the report exists in the specified path.
For test purposes I have specified a wrong path with intent. This is causing another inner exception.
Vorgang wird nicht unterstützt. Ein durch die JRC-Engine bearbeitetes Dokument kann nicht im C++ Stack geöffnet werden.
(Translation: Operation is not supported. A document that is processed by the JRC engine cannot be opened in the C++ stack.
The attached file error3.jpg contains the whole message including the stack-trace.
- Does anyone know about this problem?
- Because of the different message after specifying a wrong path I suppose that second message (erorr2.jpg) refers to another path, maybe an internal path within a DLL but not to the report path. Could that be?
- Is the installation on the customer system (.NET Framework 4; CRRuntime_32bit_13_0_9) correct?
Or is something missing?
Thank you in advance.
Best regards
Thomas