Symptom
- WinForms that references a WPF control library
- Attempt to show the window with the CR WPF viewer results in the following exception
Object reference not set to an instance of an object
Environment
- VS2010
- CRVS2010
Reproducing the Issue
- Create a WinForm application that references a WPF control library
- Encapsulates the new Crystal Reports WPF Viewer
- Run the application
Cause
- Hosting the WPF viewer in a WinForm app was not considered and therefore not tested
- The CR WPF viewer uses specific WPF Framework APIs that do not work in WinForms
Resolution
- Create a Crystal Reports WPF project
Keywords
KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Product Enhancement
Product
SAP Crystal Reports, developer version for Microsoft Visual Studio