create a frxDBDataSet and assign a DataSource

Hi
I would like to know how to write the code in Delphi o Fast Report that
runtime to create a frxDBDataSet and assign a DataSource in Fast Report.

I work with Fast Report 3.0


Thanks.

Aristo

Comments

  • edited 4:24AM
    On Delphi Code:
    Var MyFRDataSet : TfrxDBDataSet;
        Report : TfrxReport;
    Begin
        MyFRDataSet := TfrxDBDataSet.Create( Self );
        MyFRDataSet.UserName := 'MyFRDataSet';
        MyFRDataSet.DataSet := MyDataSet; //Or DataSource if you prefer.
    
        Report := TfrxReport.Create( Self );
        Report.LoadFromFile( 'c:\Test.fr3' );
    ...
    End;
    
    Is that what you need?

    Btw, I don't know why, but apparently, TfrxReport component needs all TfrxDBDataSet components to be created before itself.

    Sorry for the "terrific" english. o.O"

    Best Regards.
  • edited 4:24AM
    Hi. GFRones.


    Thanks for your email.

Leave a Comment