linq query bind to report

Stimulsoft Reports.NET discussion
Post Reply
mehdi
Posts: 1
Joined: Thu Jan 03, 2013 5:26 pm

linq query bind to report

Post 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();
}
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: linq query bind to report

Post by Alex K. »

Hello,

Please check the sample project in attachment.

Thank you.
Attachments
LinqToSql.Net.zip
(24.95 KiB) Downloaded 486 times
Linq.zip
(14.52 KiB) Downloaded 436 times
beginner
Posts: 36
Joined: Thu Jun 18, 2015 5:01 am

Re: linq query bind to report

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: linq query bind to report

Post by Alex K. »

Hello,

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

Thank you.
Post Reply