Assign Data Source at runtime

Hi,

Is there is a way to assign a DataSet source at run time for Fast Report, something like SetDataSource where you can assign a DataSet table?

We are migrating from Crystal Report to Fast Report, and we used to use SetDataSource property to assign a DataSet table to the report at run time.

Thank you,

Comments

  • edited 11:20AM
    Hello,

    This can be made using the Report.RegisterData method. This method is overloaded and allows you to register a DataSet, DataTable, DataView, DataRelation or business object which implements IEnumerable interface.

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.