What is the best way to get a large amount of dynamic, non-data source data into a report.
For example, on an invoice the header contains contact details for the company and vendor. If these details are not in the data source, what's the best way to pass it into the report?
For example, here's how I run a report now.
This report uses a DataObject class as it's data source, with a method that returns a List for the actual data source.
In this case, the parameters are used to filter the report. Should one use a bunch of parameters to hold the extra data? Or, create user-defined functions that return the needed values? What if the DataObject class also had public properties, could they be accessed from the report?
In this case, I'm using Reporting 5.1, with ASP.NET 3.5 and MVC 3 with the web viewer.
For example, on an invoice the header contains contact details for the company and vendor. If these details are not in the data source, what's the best way to pass it into the report?
For example, here's how I run a report now.
This report uses a DataObject class as it's data source, with a method that returns a List for the actual data source.
var r =
new
ProfitSystemReports.SalesByCategory();
r.ReportParameters[
"startDate"
].Value = Model.StartDate;
r.ReportParameters[
"endDate"
].Value = Model.EndDate;
ReportViewer1.Report = r;
In this case, the parameters are used to filter the report. Should one use a bunch of parameters to hold the extra data? Or, create user-defined functions that return the needed values? What if the DataObject class also had public properties, could they be accessed from the report?
In this case, I'm using Reporting 5.1, with ASP.NET 3.5 and MVC 3 with the web viewer.