Crystal Reports XI Release 2

Similar documents
Report Viewer Comparison

BusinessObjects OLAP Intelligence XI

Webi Auto Documentation

BusinessObjects OLAP Intelligence XI

BusinessObjects Metadata Management XI 3.0 for Windows

Crystal Reports XI Release 2

Crystal Reports 10 and.net

Oracle Insurance Calculation Engine

Crystal Enterprise. Overview. Contents. Configuring the Crystal Enterprise SDK for Firewalls

BusinessObjects Data Integrator XI Release 2 for Sun SOLARIS SPARC

Report Designer Component 10

Crystal Reports 10. Overview. Contents. Supported and Tested Platforms. This document lists the supported and tested platforms for Crystal Reports 10.

AppDev StudioTM 3.2 SAS. Migration Guide

Crystal Reports. Overview. Contents. Charting on Print-Time Formulas

SAS AppDev Studio TM 3.4 Eclipse Plug-ins. Migration Guide

Oracle WebLogic Server

Sentences Installation Guide. Sentences Version 4.0

Artix Orchestration Release Notes. Version 4.0, June 2006

Whitepapers. Crystal Reports XI for J2EE Startup Guide. Version 2.0. July Business Objects Starter Kit: Crystal Reports

JavaFX. JavaFX Overview Release E

User Scripting April 14, 2018

Crystal Reports XI Release 2

Hotfix 913CDD03 Visual Data Explorer and SAS Web OLAP Viewer for Java

HYPERION SYSTEM 9 BI+ GETTING STARTED GUIDE APPLICATION BUILDER J2EE RELEASE 9.2

Crystal Enterprise. Overview. Contents. Web Server Overview - Internet Information System (IIS)

Crystal Reports 2008 FixPack 2.4 Known Issues and Limitations

Writing Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p.

Crystal Reports 10. Overview. Contents. Configuring JDBC (JNDI) Connectivity

Oracle Utilities Customer Self Service

An Overview Based on Task and Edition X

MII - Crystal Reports Configuration Guide

Oracle Governance, Risk and Compliance Controls. Deployment with WebLogic Release 8.6.0

SAS Web Infrastructure Kit 1.0. Overview

MyLEAD Release V1.3 Installation Guide

Oracle Health Sciences WebSDM and Empirica Study

JBoss SOAP Web Services User Guide. Version: M5

SAP Crystal Reports Server 2013, OEM edition Sizing and Configuration Guide SAP Crystal Reports Server 2013, OEM edition Support Package 1

BusinessObjects LifeCycle Manager Release Notes

SAP NetWeaver Identity Management Identity Center. Implementation guide. Version 7.2 Rev 4. - Extension Framework

Integrating 3 rd Party Logging Frameworks into SAP NetWeaver

Oracle Real-Time Scheduler

Oracle Fusion Middleware. About XDS Usage. Configuring the XDS Connector for Oracle WebCenter Content. 11g Release 1 (11.1.1)

Crystal Reports. Overview. Contents. Using ODBC XML Data with Crystal Reports

Oracle FLEXCUBE Direct Banking UI Content Delivery Optimization Guide Release

TIBCO Spotfire Clinical Graphics Connector for SAS Installation and Administration Guide. Software Release 2.2 August 2012

Oracle Fusion Middleware

Crystal Reports XI Release 2 Service Pack 4

I M P L E M E N T I N G A C U S T O M A U T H E N T I C A T I O N M O D U L E

BusinessObjects LifeCycle Manager User's Guide

Tutorial: Developing a Simple Hello World Portlet

Installation Instructions

TIBCO ActiveMatrix BusinessWorks Plug-in for Oracle E-Business Suite Installation. Software Release 1.1 January 2011

Crystal Reports Family of Offerings

Introduction to Administration

SECTION II: JAVA SERVLETS

SAS 9.2 Foundation Services. Administrator s Guide

Oracle Service Bus. Interoperability with EJB Transport 10g Release 3 (10.3) October 2008

CHAPTER 6. Organizing Your Development Project. All right, guys! It s time to clean up this town!

Siebel Installation Guide for Microsoft Windows

SAS Integration Technologies Server Administrator s Guide

PRODUCT MANUAL. idashboards Reports Admin Manual. Version 9.1

Oracle Fusion Middleware

Chapter 1 GETTING STARTED. SYS-ED/ Computer Education Techniques, Inc.

Oracle Enterprise Manager Ops Center. Introduction. What You Will Need. Configure and Install Root Domains 12c Release 3 (

AutoVue Integration SDK & Sample Integration for Filesys DMS

Insbridge Enterprise Rating RateManager User Guide

servlets and Java JSP murach s (Chapter 2) TRAINING & REFERENCE Mike Murach & Associates Andrea Steelman Joel Murach

Oracle Fusion Middleware. 1 Oracle Team Productivity Center Server System Requirements. 2 Installing the Oracle Team Productivity Center Server

How to Achieve Best Results When Viewing or Printing Reports

Oracle Hospitality Materials Control Mobile Solutions. Installation and Configuration Guide

Connector for BEA WebLogic 8.1 Portal

SOA Software Policy Manager Agent v6.1 for WebSphere Application Server Installation Guide

Oracle Utilities Customer Self Service

Oracle Database Express Edition

INTEGRATION TOOLBOX. Installation Guide. for IBM Tivoli Storage Manager.

Contents Overview... 5 Upgrading Primavera Gateway... 7 Using Gateway Configuration Utilities... 9

Crystal Enterprise. Overview. Contents. Installation FAQ: Crystal Enterprise 9 & 10

Installing MCA Services on WebSphere 5.1

Crystal Reports. Overview. Contents. How to report off a Teradata Database

Oracle Banking Digital Experience

VirtualViewer Documentum D2 Integration Deployment Guide

UIMA Simple Server User Guide

Symantec ediscovery Platform

How to install and configure Solr v4.3.1 on IBM WebSphere Application Server v8.0

Deploying Oracle FLEXCUBE Application on WebLogic Oracle FLEXCUBE Universal Banking Release [September] [2013] Part No.

Oracle Hospitality ecommerce Integration Cloud Service Security Guide Release 4.2 E

EMC Documentum Reporting Services

Oracle Enterprise Single Sign-on Provisioning Gateway

Contents. BEA WebLogic Mobility Server Mobilize Your Portal Guide

Oracle Enterprise Manager Ops Center

Session 8. Reading and Reference. en.wikipedia.org/wiki/list_of_http_headers. en.wikipedia.org/wiki/http_status_codes

New Features in Primavera P6 16.2

Oracle Enterprise Single Sign-on Provisioning Gateway

Creating Domain Templates Using the Domain Template Builder 11g Release 1 (10.3.6)

SAS Web Infrastructure Kit 1.0. Developer s Guide

Oracle Communications MetaSolv Solution. XML API Developer s Reference Release 6.2.1

Oracle Enterprise Data Quality. 1 Overview. 2 Prerequisites. Siebel Connector Installation Guide 11g Release 1 ( )

IBM Rational Application Developer for WebSphere Software, Version 7.0

Interstage Business Process Manager Analytics V12.1. Installation Guide. Solaris

TIBCO ActiveMatrix BusinessWorks Plug-in for Microsoft SharePoint Installation

Transcription:

Overview Contents This document discusses how to deploy the Crystal Reports XI Release 2 Java Reporting Component in web and desktop (thick-client) environments. INTRODUCTION... 2 Background...2 COMMON DEPLOYMENT STEPS...2 Including required run-time libraries...2 Core libraries... 3 Charting, exporting, and report viewer libraries... 3 Database driver libraries... 4 Libraries for native XML-based reports... 4 Including configuration files...4 Configuring CRConfig.xml...4 <Keycode> tag... 5 <ReportLocation> tag... 5 <Timeout> tag... 6 Configuring Log4.properties...6 ADDITIONAL STEPS FOR JAVA DESKTOP APPLICATIONS...7 ADDITIONAL STEPS FOR J2EE WEB APPLICATIONS...7 DHTML Viewer libraries...8 crystalreportviewers115 folder...8 FINDING MORE INFORMATION...10 2/3/2006 3:52:00 PM Copyright 2005 Business Objects. All rights reserved. Page 1

Introduction The Java Reporting Component (JRC) in Crystal Reports XI Release 2 supports the ability to deploy applications in web and desktop environments. The JRC also includes APIs for server-side exporting and printing of reports, as well as for accessing information about a loaded report such as parameters and database information. It is possible to deploy the JRC in one of two ways: 1. Embedding the JRC into a desktop Java application. This method requires deployment of the JRC runtimes and thick-client Swing viewer libraries in a desktop application, which is installed on client computers. 2. Embedding the JRC into a J2EE web application. This method involves the deployment of the JRC runtimes with the zero-client DHTML Viewer in a web application archive (WAR) file. This document first discusses the common deployment steps between these methods before discussing the specifics of each method. Before proceeding, review the Crystal Reports XI Release 2 supported platforms document that contains information on the supported application servers, operating systems, and database drivers for the JRC. The supported platforms document (platforms.txt) is available on the Crystal Reports XI Release 2 Developer Edition CD. Background Common deployment steps The JRC is a 100% pure Java reporting engine that allows developers to embed reporting functionality directly into desktop and web applications. The JRC is best suited for delivering simple on demand reports to small departments or workgroups. For serving reports to larger user bases over the web with security, and scalability and fault tolerance, the Crystal Reports Server or BusinessObjects Enterprise Java SDK is recommended. This section discusses the common deployment steps for embedding the JRC into a desktop or web application. IMPORTANT For desktop Java applications, the CLASSPATH refers to the application s CLASSPATH. For web applications, the CLASSPATH refers to the /WEB-INF/lib and /WEB- INF/classes folder of the application. Including required run-time libraries The first step when embedding the JRC into a desktop application is including the required run-time libraries. 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 2

Core libraries Table 1 lists the required JAR files with their corresponding source folders. Include these files in your application s CLASSPATH. Table 1 Core Library JAR Files Source Folder \Program Files\Business Objects\common\3.5\java\lib folder \Program Files\Business Objects\common\3.5\java\lib\ext ernal JAR File CrystalCommon.jar CrystalDatabaseConnectors.jar CrystalReportingCommon.jar CrystalContentModels.jar CrystalFormulas.jar CrystalQueryEngine.jar CrystalReportEngine.jar keycodedecoder.jar MetafileRenderer.jar rpoifs.jar jrcerom.jar jrcadapter.jar rascore.jar rasapp.jar serialization.jar log4j.jar icu4j.jar Concurrent.jar xercesimpl.jar xml-apis.jar Charting, exporting, and report viewer libraries If your application or report requires charting, exporting, or report viewing functionality, add these JAR files to your CLASSPATH: ReportPrinter.jar (required for server-side printing) CrystalCharting.jar CrystalExportingBase.jar and CrystalExporters.jar (these files are required for any exporting, including exporting from the JRC viewers or server-side exporting) 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 3

Database driver libraries Depending on the type of database connectivity your report is using, other JAR files may be required in your application s CLASSPATH. For example, if your report connects to an Oracle database using JDBC, include the file ojdbc14.jar in the CLASSPATH. Libraries for native XML-based reports If your application includes a report that uses the native XML driver, include the JAR files listed in Table 2. Table 2 Native XML Driver JAR Files Source Folder \Program Files\Business Objects\common\3.5\java\lib\ \Program Files\Business Objects\common\3.5\java\lib\exter nal JAR Files CRDBJavaServerCommon.jar CRDBXMLServer.jar CRDBXMLExternal.jar axis-ant.jar axis.jar commons-discovery.jar commons-logging.jar jaxrpc.jar log4j-1.2.8.jar pullparser.jar saaj.jar wsdl4.jar xbean.jar Including configuration files Once the required libraries have been included in the application s CLASSPATH, the next step is to include the CRConfig.xml and log4j.properties files in the CLASSPATH. These files are located in the \Program Files\Business Objects\common\3.5\java folder. Configuring CRConfig.xml The CRConfig.xml file contains a number of configuration tags for the JRC that may need to be set for your application. For more detailed information on the properties in the CRConfig.xml file for Crystal Reports XI Release 2, refer to Finding more information. 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 4

<Keycode> tag Set the value of the key code tag with a Crystal Reports XI or XI Release 2 Developer Edition key code to enable the JRC to process reports. If you attempt to use a key code from the Standard or Professional editions of Crystal Reports XI or earlier, an exceeded license count error will be thrown when you run your JRC application as per knowledge base article c2017244. <ReportLocation> tag The report location tag specifies the location of the Crystal Report (.rpt) files. This location is a relative path to the location of the JRC engine libraries. By default, the value of this tag is set to../... That is, the JRC searches for reports in the folder that is two physical directory levels above the JRC engine libraries folder. Table 3 provides an example. Table 3 - <ReportLocation> Tag Configuration Example Location of JRC Engine Libraries Value of <Report Location> tag \myapp\resources\lib../.. \myapp Report Search Folder \myapp\resources\lib..\reports \myapp\resources\reports When using the JRC to open the report file with this method only the report file name should be specified. For example: ReportClientDocument.open( myreport.rpt, 0); Alternatively, the report location tag can be commented out or removed from the CRConfig.xml, allowing the JRC to open the report files using as Java resources, or reports can be opened using an absolute path: If the reports are to be opened as Java resources, then place the.rpt files in a folder that is listed in the CLASSPATH or place the.rpt files in a JAR file and then add the JAR file to the CLASSPATH. In this case, when using the JRC to open a report as a Java resource, only the report file name should be used. For example: ReportClientDocument.open( myreport.rpt, 0); If the reports are to be opened using absolute paths, place the.rpt files in the desired folder, and when opening the report in the JRC, use the full path to the.rpt file. For example: ReportClientDocument.open( C:\\reports\\myreport.rpt, 0); 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 5

<Timeout> tag The timeout tag specifies the number of minutes for which a report source object can be inactive until its associated temporary files, database connections, and other resources objects and files are released by the JRC. The default value is 10 minutes. This timeout can be particularly useful in web applications to ensure that a report is released after a period of inactivity, and that an inactive report source and other objects and files are cleaned up on the server. If the report source has been released by the JRC in a web application, the error The Report Source Has Expired is thrown by the viewer. For desktop applications, if a user attempts to navigate to the next page of a report, export the report, or interact with the report in any way after the specified timeout period has elapsed, then the error Due to inactivity, the report document timed out and has already been closed will be thrown. If a desktop application must maintain a report source for an indefinite amount of time, the timeout tag can be set to 0 minutes, in which case, the report source is never automatically released by the JRC engine. However, you will need to ensure that the report source is released if the report is no longer in use by calling the close method: ReportClientDocument.close(); It is good practice to use this method when the report is no longer needed, but essential when the timeout tag has been set to 0 minutes. Configuring Log4.properties The log4j.properties file shows how to use the Log4j logging system for troubleshooting and error detection. The JRC uses Log4j to capture runtime information from the JRC engine to help troubleshoot JRC errors. In order for the log4j loggers and appender configuration options to be read by the JRC, add the folder containing the log4j.properties file to the application s CLASSPATH. Typically for web applications, the log4j.properties file is included in the \WEB-INF\classes folder. For desktop applications, ensure that the folder containing the log4j.properties is included in the application s CLASSPATH. The log4j.properties configuration file located in the \Program Files\Business Objects\common\3.5\java folder provides a sample of how to enable various log4j logging options for the JRC engine. Of particular interest are the options for configuring the location and name of the log file: log4j.appender.fileappender.file=c:\\temp\\logfile.lo g 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 6

Also, there is an option to limit or expand the amount of logging information written. For example, the following sets JRC print engine messages to the DEBUG level and writes them to the Console: log4j.logger.com.crystaldecisions.reports.printengine =DEBUG, MyConsoleAppender NOTE MyConsoleAppender in this example should be already defined. Refer to the log4j documentation in the Finding more information section for more information on creating appenders in log4j. The main Crystal JRC loggers are listed below: com.crystaldecisions.reports com.crystaldecisions.threedg com.crystaldecisions.common com.businessobjects.reports.sdk.jrccommunicationadapter For information on using log4j, refer to Finding more information. Additional steps for Java desktop applications This section discusses additional required steps specific to deploying the JRC in a desktop application. One of the major new enhancements to the JRC in Crystal Reports XI Release 2 is the ability to embed it in a desktop application. In particular, with the thick-client ReportViewerBean viewer, you can embed report viewing functionality into a Swing application. To use the new thick-client Java viewer into a desktop application, include the ReportViewer.jar file at the beginning of your classpath (as per knowledge base article c2018313). For more information on getting started with ReportViewerBean in a desktop Java application, refer to Finding more information. Additional steps for J2EE web applications This section discusses additional required steps specific to deploying the JRC in a J2EE web application. Since the initial release of the JRC, it has been possible to embed simple report viewing and exporting functionality into a J2EE web application. The JRC is ideal for embedding small scale report processing for viewing and exporting reports in a web application. For serving larger or more complex reports to a wide user base, use the Crystal Reports Server or BusinessObjects Enterprise Java SDK. 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 7

For quick start instructions on embedding the JRC into a web application archive (WAR) file, refer to the following knowledge base article: http://support.businessobjects.com/library/kbase/articles/c2018318 The following sections further discuss the deployment instructions in this knowledge base article. DHTML Viewer libraries The following libraries are required to view reports in the zero-client DHTML Viewer or to export using the ReportExportControl method: webreporting.jar (required for the DHTML CrystalReportViewer or ReportExportControl method) webreporting-jsf.jar (required for the Java Server Faces (JSF) DHTML Viewer) crystalreportviewers115 folder The crystalreportviewers115 folder contains utility files for the DHTML Viewer including the toolbar button images, and the ActiveX Print Control that can be enabled in the DHTML Viewer for client-side printing. For J2EE web applications that use the DHTML Viewer SDK, include the crystalreportviewers115 folder as follows: 1. Copy the crystalreportviewers115 folder from the \Program Files\Business Objects\common\3.5\ to the root of the WAR file. Table 4 lists of the subfolders included under the crystalreportviewers115 folder and their descriptions. Table 4 Contents of the crystalreportviewers115 Folder Directory Description root /ActiveXControls /css /html Contains crystalimagehandler.jsp that obtains charts and other images generated for the DHTML Viewer. Contains the ActiveX Print Control that can be enabled for client-side printing from the zeroclient DHTML Viewer. Also contains the ActiveX Viewer component (not supported by JRC). Contains style sheets for DHTML Viewer. The CSS can be modified to provide a different look and feel for the DHTML Viewer. Contains HTML utility files for the DHTML viewer s parameter prompt, print, and export 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 8

Table 4 Contents of the crystalreportviewers115 Folder functionality. /images /js /prompting DHTML Viewer toolbar and control images. The images can be modified to provide a different look and feel for the DHTML Viewer. JavaScript utility files for the DHTML Viewer controls (modification not supported). Utility files for the DHTML Viewer s parameter prompt page (modification not supported). 2. The next step is to add the crystal_image_uri context parameter to the web.xml file to enable the DHTML Viewer to obtain its utility and resource files from the crystalreportviewers115 folder. If this context parameter value is not set or incorrectly set, the DHTML viewer s toolbar images will not appear and graphical objects embedded into the report will not be rendered. To add the context parameter, insert the following code below the <display-name> and <description> tags but within the <webapp> tags in your web.xml file: <!-- Context Param --> <context-param> <param-name>crystal_image_uri</param-name> <param-value>crystalreportviewers115</param-value> </context-param> <!-- Context Param End --> The value of the crystal_image_uri parameter is relative to the URI of the servlet, or JSP file that displays a report by calling the CrystalReportViewer.processHttpRequest method. In the above example, the crystalreportviewers115 directory will need to be located at the same folder level in the web application as the servlet or JSP file that calls the processhttprequest method. If the relative URI locations differ, for example, if the crystalreportviewers115 directory is located in the root of the web application but the JSP files that invoke the DHTML Viewer s processhttprequest method are located in various subdirectories of the web application context, then pre-append a slash to the crystal_image_uri context parameter value: <param-value>\crystalreportviewers115</param-value> 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 9

Furthermore, if needed, you can specify a particular web application context for the URI: <param-value>\mywebapp\crystalreportviewers115</paramvalue> NOTE The URI value may differ between J2EE application servers. To display the crystal_image_uri value, right-click a red X that appears in place of an image object (a toolbar image or graphical report objects such as a chart or static picture), and then click Properties. Finding more information JRC XI Release 2 Developer Guide and API Reference Go to Start > Programs > BusinessObjects XI Release 2 > Crystal Reports > Java Developer Documentation JRC XI Release 2 desktop samples http://support.businessobjects.com/communitycs/filesandupdates/c rxi_r2_jrc_desktop_samples.zip.asp JRC XI Release 2 web samples http://support.businessobjects.com/communitycs/filesandupdates/c rxi_r2_jrc_web_samples.zip.asp Crystal Reports XI Release 2 CRConfig.xml configuration http://support.businessobjects.com/communitycs/technicalpapers/cr _xir2_crconfigxml.pdf.asp Apache log4j http://logging.apache.org/log4j/docs/ 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 10

www.businessobjects.com No part of the computer software or this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without permission in writing from Business Objects. The information in this document is subject to change without notice. Business Objects does not warrant that this document is error free. This software and documentation is commercial computer software under Federal Acquisition regulations, and is provided only under the Restricted Rights of the Federal Acquisition Regulations applicable to commercial computer software provided at private expense. The use, duplication, or disclosure by the U.S. Government is subject to restrictions set forth in subdivision (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at 252.227-7013. The Business Objects product and technology are protected by US patent numbers 5,555,403; 6,247,008; 6,578,027; 6,490,593; and 6,289,352. The Business Objects logo, the Business Objects tagline, BusinessObjects, BusinessObjects Broadcast Agent, BusinessQuery, Crystal Analysis, Crystal Analysis Holos, Crystal Applications, Crystal Enterprise, Crystal Info, Crystal Reports, Rapid Mart, and WebIntelligence are trademarks or registered trademarks of Business Objects SA in the United States and/or other countries. Various product and service names referenced herein may be trademarks of Business Objects SA. All other company, product, or brand names mentioned herein, may be the trademarks of their respective owners. Specifications subject to change without notice. Not responsible for errors or omissions. Copyright 2006 Business Objects SA. All rights reserved. 2/3/2006 3:52:00 PM Copyright 2006 Business Objects. All rights reserved. Page 11