![]()
Using Crystal Connectivity Kit with Crystal Reports XI Server Edition
A
Data Access Worldwide White Paper
by Marcia Booth
June 22, 2005
Last Edited: July 07, 2005
The goal of this white paper is to help you configure Crystal Reports XI Server Edition to successfully run reports that access DataFlex tables.
Contents
You will need the following products in order to be able follow the steps described in this white paper:
Installing Crystal Reports XI Server Edition
Some things you should make sure before you start installing the Server:
Once those 3 requisites are met, just follow the steps described in http://support.businessobjects.com/communityCS/TechnicalPapers/cr_server_quick_install.pdf.asp in order to get the Server installed.
After the original product is installed, download and apply the latest hot fixes available for Crystal Reports XI from ftp://ftp1.businessobjects.com/outgoing/EHF/commonXIwin_en.zip and ftp://ftp1.businessobjects.com/outgoing/EHF/crXIwin_en.zip, or download the latest Monthly Hot Fix (if available).
Setting Up Crystal Reports Connectivity Kit 11
In order to publish and run reports that access DataFlex tables, you will need to have the Connectivity Kit available in the Server's common directory, i.e. C:\Program Files\Common Files\Business Objects\3.0\bin (default).
The necessary Connectivity Kit files should be copied to the common directory and then you should configure your system so those files can be found when needed.
First, copy the following files to the bin directory under Common Files:
|
XI Server LOCATION |
|
CommonDir\Bin\crdb_p2bdfapi.dll |
| CommonDir\Bin\crdb_p2bdfapi_res_en.dll |
|
CommonDir\Bin\p2bdfapi.dll |
|
CommonDir\apidll.dll |
|
CommonDir\df_collate.cfg |
where CommonDir, by default, is C:\Program Files\Common Files\Business Objects\3.0.
Second, adjust the PATH environment variable, adding CommonDir to it so all the files can be found when needed. Note that in order for the new value of PATH to take effect, Windows might need to be restarted after changing that setting.
To change the PATH:
If any of the files are missing, you may get the following error displayed when trying to run a report:
CrystalReportViewer
Error in File <reports file name>: Failed to load database information.
Unable to retrieve Object.
Error in File custlstXI: Failed to load database information.
Saving Reports that will be Published
The datasource location specified in the reports (set through Database | Set Datasource Location) is of critical importance. If that location is not correct or is inaccessible, chances are that the XI Server will ask for a Database logon when trying to open the DataFlex tables displaying the following message when running the reports:
The report you requested
requires further information.
In order to avoid that:
Refrain from using directory names.
If the directory name saved to the report is on the same machine as where the XI Server is, it is possible to use a path (like C:\MyPublishedReports) to determine where the DataFlex tables are located. However, this is not recommended.
Publishing Reports that use DataFlex Tables
In this white paper, we use the following scenario: Developers create new reports on their local machines and copy them to a directory on the server when the reports are ready to be published. The tables used in the reports are located on a file server -- different from the server where Crystal XI Server is running -- that can be accessed from both the Developers' machines and the Crystal XI Server machine. The path to the tables saved in the report are in UNC format pointing to the data directory in the file server.
The described scenario is just an example of how you can set up an environment to have a work-in-progress report on the Developers' machines independent of a tested copy of the same report that is ready to be published and used by other users. This way, Developers can make a report available to other users and then fine-tune and re-publish an updated version of the report. By the same token, if Developers need to go back to the public version of the report, they can copy the report back from the server and work on that version of the report.
Other needs could trigger the creation of different environments -- like publishing reports to a server straight from the Developers' machines using Crystal Reports Designer 'Save As' option or having Crystal Reports Designer installed on the same machine as the server or ... -- but these environments are beyond the scope of this white paper.
Getting the Reports Ready to be Published
You can choose to publish reports in many different ways: using the Publishing Wizard, the Central Management Console, the InfoView or even the Crystal Reports Designer (to save objects directly to the server). For this white paper we will be using the InfoView. You can find more information on publishing reports using the other tools in the Business Objects Enterprise Getting Started Guide (http://support.businessobjects.com/library/docfiles/cps10/downloads/en/boexi_Getstarted_en.pdf).
To publish reports using the InfoView:
System: MyServerName
User name: administrator
Password:
Authentication: Enterprise
Verifying the Published Reports
To verify the published reports, select the Reports using DataFlex Data folder on the tree and click on the name of one of the published reports. The request should be processed and the report should be displayed where the list of reports was shown.
Crystal Reports XI Server Edition product documentation can be found at http://support.businessobjects.com/library/docfiles/cps10/docs_en.asp#BusinessObjects_Enterprise
Product Resources are listed at http://www.businessobjects.com/jump/smb/main/cr_server_xi.asp
Different Support alternatives can be found at http://support.businessobjects.com/
A variety of resources useful for developer can be found in the Developer Zone at http://www.businessobjects.com/products/dev_zone/
Contacting Data Access Worldwide
Data Access
Worldwide
14000 SW 119 Ave
Miami, FL
33186
305-238-0012
Domestic Sales: 800-451-3539
Fax:
305-238-0017
email: sales@dataaccess.com
Newsgroup Server:
news.dataaccess.com
Internet:
http://www.dataaccess.com
Data Access Worldwide - Asia Pacific
Suite 5, 333 Wantirna Road, Wantirna VIC 3152 Australia
Phone: +61 3 9800 4233 f: +61 3 9800 4255
Sales: asiapacific@DataAccess.com
Support: support.asiapacific@DataAccess.com
Internet: http://www.DataAccess.com/AsiaPacific
Data Access Worldwide - Brasil
Av.Paulista, 1776 - 21st.Floor
São Paulo -SP - Brazil
CEP 01310-921
Phone: 5511-3262-2000
Fax 5511-3284-1579
Sales: info@dataaccess.com.br
Support: suporte@dataaccess.com.br
Internet: http://www.dataaccess.com.br
Data Access Worldwide - Europe
Lansinkesweg 4
7553 AE Hengelo
The Netherlands
Telephone: +31 74 - 255 56 09
Fax: +31 74 - 250 34 66
Sales: info@dataaccess.nl
Support: support@dataaccess.nl
Internet: http://www.dataaccess.nl
Data Access Technical
Support
800-451-3539 / 305-232-3142
email: support@dataaccess.com
Visit our Support Home page to see all of our Support
options: http://www.dataaccess.com/support
Data Access Technical Knowledge
Base http://www.dataaccess.com/kbase
Many answers to technical problems can be found
online in the Data Access Technical Knowledge Base. Here, you can access the
same live data that Data Access Worldwide technical support and development
staff use to
enter and track technical articles.
Copyright Notice
This document is property of Data
Access Corporation. With credit to Data Access Corporation for its authorship, you are encouraged to reproduce this
information in any format either on paper or electronically, in whole or in part. You may publish this paper as a stand
alone document within your own publications conditional on the maintenance of the intent, context, and
integrity of the material as it is presented here.
DataFlex is a registered trademark of Data Access Corporation.
NO LIABILITY FOR CONSEQUENTIAL DAMAGES
To the maximum extent permitted by applicable law, in no
event shall Data Access Corporation be liable for any special, incidental,
indirect, or consequential damages whatsoever (including, without limitation,
damages for loss of business profits, business interruption, loss of business
information, or any other pecuniary loss) arising out of the use of or inability
to use any information provided in this document, even if Data Access
Corporation has been advised of the possibility of such damages. Because some
states and jurisdictions do not allow the exclusion or limitation of liability
for consequential or incidental damages, the above limitation may not apply to
you.