Enable BusinessObject DataSource in Fast Reports Designer

While evaluating fastreports i try to use business object data source. any existing report with this data connection works fine. rendering via code by using busneess object works fine too.


But while using designer, there is no option to select such a data source. only via xml definition within report file this kind of data source can be defined.


is there any option to use busines object dataSource within designer?


Thanks, Thomas

Comments

  • Hi did you solve it? Did you understand how to do it?

    I think I have the same problem with: FastReport Designer Community Edition (freeware).

    https://forum.fast-report.com/en/discussion/17830/fastreport-designer-community-edition-freeware

    Within the FastReport Designer Community Edition (freeware) is it is possible to create a report using .cs entities a model? Then when I run the report with asp.net core I read data from the database and pass them as IEnumerable to the report1.RegisterData(...)

    Within FastReport Designer Community Edition (freeware) it seems to me that can only connect to a database or read json files? Or am I wrong?

    Any .cs files must be compiled! unless I reference a dll in some way.

    But I haven't gotten any answers yet

  • Hello!

    The most convenient way to work with BusinessObjects in the Visual Designer without manually editing XML:

    Save the initial .frx file containing the schema for your DTO from the code (a simple empty typed collection will suffice):

    using var report = new Report();
    report.RegisterData(new List<MyDto>(), ‘Model’, 2);
    report.GetDataSource(‘Model’).Enabled = true;
    report.Save(‘template.frx’);
    

    Open the created `template.frx` in the standalone designer — the `Data` pane will already contain the full property tree for `Model` (BusinessObjectDataSource), ready to be dragged onto the bands.

    In your applicatio, when running the report, load this .frx file and substitute the actual data: report.RegisterData(realList, ‘Model’); report.Prepare();

    Article on this topic: https://www.fast-report.com/blogs/business-objects-net

This discussion has been closed.