How do i incorporate mydac into RaveReports

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
markcr1967
Posts: 9
Joined: Fri 22 Jun 2007 13:17

How do i incorporate mydac into RaveReports

Post by markcr1967 » Fri 22 Jun 2007 14:54

Is it possble to use mydac with RaveReports as shipped with C++Builder 2007? If so, how?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Sat 23 Jun 2007 12:56

You can do this by using Rave Reports functionality for working with standard DataSets. Perform the following steps to add a DataView in the Rave Reports editor (I tested this with Rave Report for Delphi 7, but there should not be a greate difference with Rave Report for C++Builder 2007):
  • - place a TMyConnection component onto the form, specify connection settings, and perform connect;
    - place a TMyTable or TMyQuery onto the form, specify a table name or a query;
    - place a TRvDataSetConnection onto the form and set its DataSet property to the table or query added in the previous step;
    - run the Rave Visual Designer (double click on the TRvProject component);
    - run the New Data Object wizard from the File menu;
    - select the Direct Data view in the list and click the Next button;
    - a list of the active data connections will appear. It should contain only one RvDataSetConnection1, which should be selected. Click the Finish button.

Post Reply