Does UniTable works with FastReport

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ninadgac
Posts: 4
Joined: Sun 13 Oct 2013 06:18

Does UniTable works with FastReport

Post by ninadgac » Wed 23 Oct 2013 15:18

I am using UniDAC version 4.5 - XE3. I have been trying to print data from table to Fast Report. It has been extracting data successfully from SQLite table with the help of UniConnection, UniTable, UniDataSource, SQLiteUniProvider etc.. But it is not printing data into fast report.

frxDBDataSet DataSet property is set to UniTable1 and table name property is set to appropriate tablename from DB.

frxReport DataSet property is set to the frxDBDataSet.

My code is as follows

Code: Select all

   
    UniConnection1: TUniConnection;
    SQLiteUniProvider1: TSQLiteUniProvider;
    UniDataSource1: TUniDataSource;
    UniTable1: TUniTable;
    DBGrid1: TDBGrid;
    DBNavigator1: TDBNavigator;
    Button1: TButton;
    frxDBDataset1: TfrxDBDataset;
    frxReport1: TfrxReport;
 
 
    procedure Button1Click(Sender: TObject);
  

procedure TForm6.Button1Click(Sender: TObject);
begin
    frxReport1.ShowReport;
end;
Is above code enough to display data from unitable to the Fast Report ?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Does UniTable works with FastReport

Post by AlexP » Thu 24 Oct 2013 07:34

Hello,

In order for data to be displayed in FastReport from frxDBDataSet, you should specify the data source in the report designer in the Report->Data->Select Report DataSet menu, select the needed DataSet. Then it will appear on the Data tab, from where you can drag and drop fields to your report.
Moreover, you can use our components for FastReport ...\Devart\UniDAC for XXXX\Demos\ThirdParty\FastReport\FR4\, that allow to create Connection and Query directly in the report designer not using components in the main application.

Post Reply