error "No DATA Link drivers have been loaded ..."

Category

Rave - Data Connections

Question

I get an error message "No DATA Link drivers have been loaded ." when I try to preview a report that uses a database connection. Previewing the report from the RAVE designer works.

Solution

This occurs when you call one of the execute method(s) of the RvProject, like ExecuteReport. What you need to do is include the appropriate RVDLXxxx unit in your uses clause. The xxxx is for the specific connection you are using for your database connection. This will register the datalink driver within your application.

For example:

RvDLADO for the ADO driver
RvDLBDE for the BDE driver
RvDLDBX for the DB Express

Others drivers are available on the Rave Reports Add-Ons page