Article ID 2161 Article Title INFO: Running Crystal XI reports from Visual DataFlex Applications Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2161 KBase Category Crystal Reports Date Created 08/18/2005 Last Edit Date 07/09/2012
Article Text
QUESTION:
What do I need to deploy reports created with Crystal Reports XI that run from my Visual DataFlex apllication? I still use CRPE32.dll.
ANSWER:
The User's Guide of the Crystal Reports Connectivity Kit 11 has that information in chapter 3, under Running Reports from Visual DataFlex Applications:
In order to run reports from within your Visual DataFlex applications, you must ensure that the compiled application can find the appropriate Crystal Reports for DataFlex runtime components, including the Crystal Reports runtime files and the Connectivity Kit runtime files.
Add the location of the Crystal Reports files to your PATH environment variable. The default location for these files is "c:\program files\common files\business objects\3.0\bin".
You will need to install:
- The Crystal Reports RDC runtime
Installing the RDC runtime is done through the use of Windows Installer merge modules that are supplied with your Crystal Reports Developer license. The merge modules files are on the Crystal Reports XI for DataFlex DVD and those are the files that should be used for deployment -- files provided directly by Business Objects/SAP should NOT be used.
The merge modules you need to install are:
- CrystalReports11_rdc_reportengine.msm
- CrystalReports11_rdc_runtime.msm
- CrystalReports11_rdc_license.msm
- CrystalReports11_rdc_designtime.msm -- this merge module is labeled (optional) in the Crystal Reports XI doc, but it is required for using Visual DataFlex's RDC implementation.
For complete instructions on how to use merge_modules, refer to:
BusinessObject_CreatingAnRDCDistributionPackage.pdf and the instructions listed at vdf-guidance.com
- The Connectivity Kit runtime files
The best location for the Connectivity Kit runtime files is the Programs folder of your application.
- Additional Crystal Reports runtime files (depending on the report interface your application uses).
To summarize:
If your application is still using the Print Engine API (crpe32.dll) interface (through the CrystalReports class), besides installing the Crystal Reports RDC runtime and the Connectivity Kit runtime files, you also need to install two additional Crystal Reports runtime files into your application's Programs folder: crpe32.dll .and crpe32_res_en.dll.
If your application already uses the COM (RDC) interface (through the cCrystal class, which is a new class in VDF 11.1), besides installing the Crystal Reports RDC runtime files, you only need to install the Connectivity Kit runtime files into your application's Programs folder.
The list of files:
Crystal Reports Connectivity Kit Runtime Files
The following is a list of the required Connectivity Kit runtime files and their locations in the development machine:
CommonDir\Bin\crdb_p2bdfapi.dll
CommonDir\Bin\crdb_p2bdfapi_res_en.dll
CommonDir\Bin\p2bdfapi.dll
WindowsSystemDir\apidll.dll
WindowsSystemDir\df_collate.cfg
Additional Crystal Reports Runtime Files
The following is a list of the additional Crystal Reports runtime files and their locations in the development machine:
CommonDir\Bin\crpe32.dll
CommonDir\Bin\crpe32_res_en.dll
where
-> CommonDir Refers to the full path where Crystal installed its common components. The default is C:\Program Files\Common Files\Business Objects\3.0
-> WindowsSystemDir Refers to the full path to the Windows System directory, the directory in which Windows system files are installed on the current PC. The default for this on Windows XP is C:\WINDOWS\System32.
Contributed By:
Marcia Booth
Company: Data Access Worldwide
Web Site: http://www.dataaccess.com
Links Related to this Article
Business Objects - Creating an RDC distribution package to deploy an RDC application
DAW - Crystal Reports Connectivity Kit 11 Installation and Users Guide
DAW Knowledge Base article 2027: ERROR: "Logon Failed" on Crystal Reports when using INT files
DAW Knowledge Base article 2169: ERROR: Could not connect to the Crystal RDC Application Object
DAW Knowledge Base article 2175: ERROR: "The file \dfcrdrv.exe' could not be opened. ..."
DAW Knowledge Base article 2183: ERROR: "Unable to instantiate COM object." when running a report
DAW Knowledge Base article 2357: INFO: Versions of Crystal Reports and corresponding Connectivity Kits
VDF-Guidance: Crystal Reports XI Runtime Installer
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2024 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.