Page 1 of 1

linq query bind to report

Posted: Thu Jan 03, 2013 7:11 pm
by mehdi
I create a linq query and i want to it display in stireport. what do i do?this code dont work ,with run this code just a empty stireport displayed.
usin(NorthwindEntity db=new NorthwindEntity())
{
var query=from e in db.Employees
where EmployeeName=="Alek"
select e;
stireport1.RegData("myquery",query);
stireport1.Show();
}

Re: linq query bind to report

Posted: Fri Jan 04, 2013 6:29 am
by Alex K.
Hello,

Please check the sample project in attachment.

Thank you.

Re: linq query bind to report

Posted: Tue Aug 25, 2015 9:17 am
by beginner
Hi Aleksey,

You need a `Data From User Sources` Data Source in the report, but what kind of connection you have used?

Thanks you.

Re: linq query bind to report

Posted: Tue Aug 25, 2015 10:47 am
by Alex K.
Hello,

In this case uses DataSet which registered with RegData() method.

Thank you.