UserDataSet
Hi,
i was using IfrxUserDataSet with IfrxUserDataSetEvents in FastReport Studio for years.
Now I want to switch to FastReport.Net but I did not find data source type that uses the events mechanism for getting data. Is there somthing like that in FastReport.Net?
Best regards,
Marcin
This discussion has been closed.
Comments
Did you try using report.RegisterData & report.GetDataSource?
// register the "Products" table report.RegisterData(dataSet1.Tables["Products"], "Products"); // enable it to use in a report report.GetDataSource("Products").Enabled = true;https://fastreports.github.io/FastReport.Documentation/CreatingReportUsingCode.html
I'm just curious if you found your answer...I'm surprised that this has gone unanswered.
Hello!
report.RegisterData(IEnumerable<T>, ‘MyData’) accepts any lists, arrays, DataTables, LINQ queries and business objects of type List<MyRow> (or IEnumerable<MyRow>, which returns data one record at a time via `yield return` without materialising it in memory).
If a fully custom virtual data source is required (event-driven access by rows/columns), you can implement a custom subclass of `DataSourceBase` (by overriding the initialisation, transition and column read methods) or register a wrapper using `ICustomTypeDescriptor` / `ITypedList`.