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.
This discussion has been closed.
Comments
Hello!
FastReport Designer Community Edition (compatible with FastReport.OpenSource) does not compile external .cs model files directly, which is why only databases and JSON are visible in the data connection window. However, you can still fully design reports in it for IEnumerable<YourModel> in ASP.NET Core:
Generate a template with an empty collection of your models using the following code:
Open MyReport.frx in Community Designer; all the Model fields will appear in the Data tree, which you can use to visually design the layout.
In ASP.NET Core, pass the actual data using the same name:
webReport.Report.RegisterData(entities, ‘Model’);