SAP Knowledge Base Article - Public

1258796 - How do I upgrade C++ application using Report Designer Component from Crystal Reports version 9.0 to Crystal Reports version XI r2

Symptom

  • Upgrading Report Designer Component (RDC) in C++

Resolution

  1. Open project in C++
  2. Go to Resource View and open your dialog with the Crystal Report viewer
  3. Delete the old viewer. If your computer only has version XI r2, this will show up as a blank activeX control, you may have also received an error message when you loaded the project; 'ActiveX control could not be instatiated'
  4. Right click on the dialog and select 'Insert ActiveX Control' 
  5. Select the Crystal ActiveX Report Viewer Control 11.5
  6. Resize the control to the desired size
  7. Right click on the dialog and go to the Class Wizard.
  8. Select the 'Member Variables' tab.
  9. Delete the existing Viewer member variable. It will have the Control ID IDC_CRVIEWER1 or something similar. You can also check the type: CCrystalreportViewer9 or CCrystalreportViewer depending on the previous crystal report version you were using.
  10. Select the Control ID for the new viewer and add a member variable for it. You will be notified that c++ wrapper needs to be generated. You will need to name the variable.
  11. If you selected a different variable name than you were using originally, you will need to update the references to the viewer
  12. You must import the new craxdrt. IE:
    #import "c:\program files\crystal decisions\report designer component\craxdrt9.dll" no_namespace
    becomes
    #import "c:\program files\business objects\common3.5\bin\craxdrt.dll" no_namespace

Keywords

C++ RDC Report Desinger Component ActiveX viewer upgrade XI r2 craxdrt.dll crviewer.dll , KBA , BI-DEV , Business Intelligence Software Development Kits (SDKs) , How To

Product

SAP Crystal Reports XI R2