Article ID 2178
Article Title EXAMPLE: cCrystal Subclass to handle ADO Properties
Article URL http://www.dataaccess.com/kbasepublic/kbprint.asp?ArticleID=2178
KBase Category Crystal Reports
Date Created 10/07/2005
Last Edit Date 10/07/2005


Article Text
This is an example of how to subclass the cCrystal class if you are using Crystal Reports RDC from Visual DataFlex to run reports built to access databases through OLE DB (crdb_ado.dll). You can use this example as the basis to build other subclasses for the drivers you use in your reports. Keep in mind that the name of the properties will vary according to the driver being used. For more information, refere to the Crystal Reports Developer's Help.


The subclass provided in this example is called cCrystalADO. You should create cCrystalADO objects instead of cCrystal objects if you want to use the functions available in this subclass.


In order to create cCrystalADO objects using the controls palette in the Studio, you will need to add this class to your class list (Tools | Configure Class-Lists). The attached ZIPs contain all the files you should point to when adding the class to the list:

- If you want to add this subclass to the GLOBAL class list, just unzip the files from cCrystalADO_ClassFiles.zip into <VDF11.1>\Usr\Global\IDESrc and from cCrystalADO_PKG.zip into <VDF11.1>\PKG and, when adding the class to the global class list, point to them.

- If you want to add this subclass to the WORKSPACE class list, just unzip the files from cCrystalADO_ClassFiles.zip into <YourWorkspace>\IDESrc and from cCrystalADO_PKG.zip into <YourWorkspace>\AppSrc and, when adding the class to the workspace list, point to them.



Note: Starting in Visual DataFlex 11.1, the RDC classes are delivered as part of the development environment.


Contributed By:
Marcia Booth
Company: Data Access Worldwide
Web Site: http://www.dataaccess.com

Links Related to this Article
File cCrystalADO_ClassFiles.zip
File cCrystalADO_PKG.zip
DAW Knowledge Base article 2176: ERROR: "Logon Failed" using Crystal RDC

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.