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.

Hallo! Brauchen Sie Hilfe?