In a 64 bit WEB application using CR for VS SP 29 setting the Viewer to ActiveX and not PDF causes the application to to crash.
Crystal Reports for Visual Studio (all versions)
Reproducing the Issue
- Using VS 2019
- Using CR for VS SP 29
- Run application, note the app is built in x64 mode.
- Properties of the Viewer PrintMode is set to ActiveX
- Once the report shows click on the CR Viewers Print button.
Result - the app closes with no error generated.
Request - Error trapping since there is no 64 bit PrintController ActiveX component. We need to handle the Exception gracefully and generate an Exception in the Viewer. For this instance since it does not exist we need to pop up a message indicating "Not able to print, export to PDF" and bring up the PDF Print Dialog.
There is no 64 bit ActiveX PrintControl dll. Due to most Browsers no longer support ActiveX we have never created a 64 bit version
Set the PrintMode in the WEB Viewer properties to PDF.
Note: Escalated to R&D to handle the missing component and not crash the app - suggested pop up the PDF print dialog
cr for vs, printmode, web iis, .NET, ActiveX , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem