The result of a LINQ query can be used as a report data source, so filtering, sorting and shaping happen in code before the report sees the data.

Query, then register. Build a LINQ query and pass it to the report as a business object:
var query = from i in items
            where i.Price > 9.99
            orderby i.Price
            select i;

var report = new StiReport();
report.Load("Reports/Report.mrt");
report.RegBusinessObject("MyData", "MyData", query);

How it works. Any IEnumerable LINQ result — projections, joins, groupings — becomes a data source, letting you pre-shape data with the full power of LINQ.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.