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 5:14AM
    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 5:14AM
    Hi. GFRones.


    Thanks for your email.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.