Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference to type 'IDataSource' claims it is defined in 'System.Web', but it could not be found

I was trying to render rdlc reports in .net core 2.0 and found System.Web is not yet available in .net core. So I started a separate .net standard 2.0 project with in the same solution for the task. Then I was again facing issue with 'ReportDataSource' which in turn is System.Web library. I tried to google for the same but found no luck with the information related to this. Someone please help me to find the possibilities to render rdlc in my .net core project.

<img>

like image 584
deepthi gollapalli Avatar asked Apr 03 '18 04:04

deepthi gollapalli


1 Answers

You can try it like this, it works:

var rds = new ReportDataSource();
rds.Name = "DeviceSalesReport";
rds.Value = result;

dataSource.Add(rds);
like image 146
zholinho Avatar answered Oct 03 '22 04:10

zholinho