SAP Knowledge Base Article - Public

3028347 - When opening multiple reports by double clicking on the report file names, multiple copies of Crystal Reports launch

Symptom

  • Double clicking on multiple report files, launch multiple copies of Crystal Reports.
  • Double clicking on multiple reports files, does not open the reports under different tabs in Crystal Reports.
  • .When double clicking on multiple reports file name, it open multiple copy of Crystal Reports, when the expectation is for each report to open under a different tab in Crystal Reports. 

Environment

  • SAP Crystal Reports 2016
  • SAP Crystal Reports 2020
       
  • MS Windows 10 

Reproducing the Issue

  1. Double click on a report file (.rpt)
  2. Crystal Reports launch, and display the report.
  3. Double click on a second report file (.rpt)
  4. It open a second copy of Crystal Reports launch, to display the report, instead of opening the report under a second tab in Crystal Reports.

Cause

  • When double clicking on a file in MS Windows, it uses the MS Windows File Association to launch the application associated with the file extension, and open the file it that application.
      
  • An incorrect MS Windows File Association command set for Crystal Reports, causes MS Windows to launch one copy of Crystal Reports for each file open.

Resolution

  • Set the correct command to launch Crystal Reports in the Microsoft Windows File Association in the Microsoft Windows Registry.
            
    WARNING: The following resolution involves editing the Microsoft Registry. Using the Microsoft Registry Editor incorrectly can cause serious problems. Use the Microsoft Registry Editor at your own risk. For more details, see the SAP Knowledge Base Article 1323322
         
    1. Go to the Microsoft Registry Editor: ( Regedit )
         
    2. Navigate to the following key: 
        
           HKEY_CLASSES_ROOT\CrystalReports\shell\Open\command
        
    3. Confirm the path and the command to launch Crystal Reports is correct:

           "C:\Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crw32.exe" /dde
         
      Note: The above is the default folder location for Crystal Reports, but it is possible during the product installation to install to change the location where Crystal Reports is installed, therefore ensure the path correspond to the path where Crystal Reports is installed. (crw32.exe)
           
    4. Navigate to the following key:  

           HKEY_CLASSES_ROOT\CrystalReports\shell\Open\ddeexec
        
    5. And ensure the value is:  
        
           [open(\"%1\")]
         
    6. Navigate to the following key:
       
           HKEY_CLASSES_ROOT\CrystalReports\shell\Open\ddeexec\Application
       
    7. Ensure the value is set to:

           crw32
       
      If everything is set as above, then when you double click on multiple report files, it will open each report under a different tab in Crystal Reports.

Keywords

CR , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem

Product

SAP Crystal Reports 2013 ; SAP Crystal Reports 2016 ; SAP Crystal Reports 2020