[BO - Crystal Reports]: Cannot print / export reports run from Clarity, an error message is shown "missing Active-X component".

Document ID : KB000051405
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

[BO - Crystal Reports]: Cannot print/export reports run from Clarity, an error message is shown "missing Active-X component".
The reports are viewed and printed ok from the CMC. However, when a report is run from within Clarity, the viewer cannot be changed to Java. Users need to have Crystal Report viewer installed in order to view/print reports, other wise the error "missing Active-X component" will be displayed.

Solution:

** WINDOWS ENVIRONMENTS **

First of all, you need to set the preference for Java or ActiveX or DHTML in the Business Object CMC (Central Management Console).

In order to view the reports, the following components are needed:

  • ActiveX viewer (It uses ActiveX controls and it requires IE as the browser. Make sure the browser security settings allow ActiveX control to run).
  • DHTML viewer.
  • Advanced DHTML viewer.
  • Java Viewer.


Moreover, DHTML viewer components also requires 2 additional components:

  • Acrobat Reader printing control.
  • ActiveX printing control.


** Note 1: Using the ActiveX Printing control will retain the original Crystal Reports format and not the "exported" DHTML or PDF view.
** Note 2: Using the Acrobat Reader printing control option requires the additional steps of first viewing the report in PDF format:

  1. Go to the following folder in Windows Explorer: <Driver>:\Business_Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\viewers\rpt.
  2. Open the following file in Notepad: DHTMLViewer.jsp.
  3. Find the following line:
    iviewer.setPrintMode(CrPrintMode.ACTIVEX); //activeX by default, or .PDF.
  4. Change the ACTIVEX to PDF so the line reads as follows:
    iviewer.setPrintMode(CrPrintMode.PDF); //activeX by default, or .PDF.
  5. Save the file.


[Additional information]
iviewer.setPrintMode(CrPrintMode.ACTIVEX): Uncomment the code line in the DHTMLViewer.jsp code. It will provide the option to either print the report on the printer or export the report (in either of the PDF, RTF, RPT formats).
iviewer.setPrintMode(CrPrintMode.PDF): Uncomment the code line in the DHTMLViewer.jsp code. It will provide just the option to export the report.

Depending upon which one of the above two code lines is uncommented, clicking on the print icon (located in the left-top section) of the displayed report, it will give the option to print the report on the printer or export the report as a PDF file respectively.

If both are uncommented then the latter one will take effect at runtime.

** LINUX ENVIRONMENTS **

Please, review TEC468041 in ca support site.