1275282 - Graphs or charts not getting displayed in Crystal report while viewing it from JRC XI web application

SAP Knowledge Base Article - Public

1275282 - Graphs or charts not getting displayed in Crystal report while viewing it from JRC XI web application

Symptom


- The Crystal report containing graphs (charts) can be previewed correctly using Crystal report designer.

- When trying to view this report through JRC XI web application, the graphs does not display in the Crystal report. 

Reproducing the Issue

1) Go to the following path C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\<web_application_name>

Note: Replace <web_application_name> with the name of the actual web application.

2) Inside <web_application_name>place the jsp files, Crystal report.

3) Create a folder named WEB-INF which contains the folder lib (contains all the jar files needed by the web application) and the web.xml file.

3) Do not place the crystalreportviewers11 folder inside the web application.

4) Run the JRC web application using the Tomcat application server and view the Crystal report.

5) If the Crystal report contains graph (charts), it won't get displayed using the JRC application.

 

- Crystal Reports XI.

- Tomcat 5.0.

- Java Reporting Component XI.

Cause

- The graph (chart) doesn't get displayed through JRC web application due to the absence of crystalreportviewers11 folder inside the web application.

Resolution

1) Go to the following path C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\<web_application_name>

Note: Replace <web_application_name> with the name of the actual web application.

2) Inside <web_application_name> paste the folder crystalreportviewers11.

This folder is present at the following path:

C:\Program Files\Common Files\Business Objects\3.0

3) Open the web.xml file which is at the following location:

C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\<web_application_name>\WEB-INF\web.xml

4) This file must have the following settings:

*******************************************************************************

<!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<display-name>web_application_name</display-name>

<context-param>

<param-name>crystal_image_uri</param-name>

<param-value>crystalreportviewers11</param-value>

</context-param>

<env-entry>

<env-entry-name>jdbc/Xtreme Sample Database 11</env-entry-name>

<env-entry-value>

!sun.jdbc.odbc.JdbcOdbcDriver!jdbc:odbc:Xtreme Sample Database 11</env-entry-value>

<env-entry-type>java.lang.String</env-entry-type>

</env-entry>

</web-app>

*******************************************************************************

Keywords

JRC not showing graphs in Crystal report, Java Reporting Component not displaying charts, graph not displayed, charts missing in Crystal report. , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem

Product

SAP Crystal Reports XI