Page 1 of 1

Does UniTable works with FastReport

Posted: Wed 23 Oct 2013 15:18
by ninadgac
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 ?

Re: Does UniTable works with FastReport

Posted: Thu 24 Oct 2013 07:34
by AlexP
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.