FastReport icon indicating copy to clipboard operation
FastReport copied to clipboard

How to add internal data source?

Open yuhangli1991 opened this issue 7 years ago • 1 comments

I try to add tableDataSource in report template,but I can't preview datasource in your fastreport. It hinted to use report.RegisterData ,but your template can show datasource in your fastreport directly.

yuhangli1991 avatar Jul 05 '19 03:07 yuhangli1991

I didn't understand your doubt...

Look, for example, when I want to make a new report, I enter the datasource so I can "draw", but when I go to the code I dynamically inform the path whatever the datasoruce

webReport.Report.Dictionary.Connections[0].ConnectionString = "Json=http://" + url + "/Api/MyApi/" + id;

This way works for most connections.

jeftegoes avatar Dec 21 '19 22:12 jeftegoes