// Get the data for the report (any IEnumerable will work)
var query = ProductRepository.GetAll();
var totalProducts = query.Count;
var totalOrders = query.Sum(p => p.OrderCount);
// Create the report and turn our query into a ReportSource
var report = new Report(query.ToReportSource());
// Customize the Text Fields
report.TextFields.Title = "Products Report";
report.TextFields.SubTitle = "This is a sample Doddle Report";
report.TextFields.Footer = "Copyright 2011 © The Doddle Project";
New to DoddleReport?
Leave a Comment