Hello everyone,
I'm encountering a stubborn xercesc_3_2::RuntimeException when trying to load a Crystal Report (.rpt file) in my MFC C++/CLI application developed with Visual Studio 2019. I've tried extensive troubleshooting, and I'm hoping for some fresh insights, especially regarding this specific exception with matching bitness.
Problem Summary: When my MFC application calls m_report->Load(reportPath); (where m_report is a CrystalDecisions::CrystalReports::Engine::ReportDocument^ instance), an immediate Microsoft C++ exception: xercesc_3_2::RuntimeException is thrown. The debugger shows the exception originating deep within Crystal Reports' native components, likely during the XML parsing of the .rpt file.
My Environment:
Development IDE: Microsoft Visual Studio Professional 2019 (Version 16.11.x, latest updates applied).
Application Type: MFC Dialog-based application (C++).
Managed Code Bridge: C++/CLI Wrapper project (CrystalReportsWrapper.dll) exposing a System::Windows::Forms::Control-derived class (CrystalReportHostControl) to host the Crystal Report Viewer.
Target Framework: .NET Framework 4.7.2 (consistent across both MFC and C++/CLI projects).
Crystal Reports:
SAP Crystal Reports, version for Microsoft Visual Studio 2016 (design-time component).
SAP Crystal Reports runtime engine for .NET Framework (32-bit) (Crucial: confirmed 32-bit installation).
Request clarification before answering.
What SP of CR for VS are you using?
You can get the latest from here:
https://help.sap.com/docs/SUPPORT_CONTENT/crystalreports/3354091173.html
Check the platforms support info also for supported OS's etc.
See my blog on upgrading your project:
Also note CR for VS runtime will only be 64 at the end of this year, time to upgrade your project 64 bit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.