I have a MVC project and I want to create a report using Stimulsoft Ultimate. I've seen samples that use a direct connection and execute a query to get data from the database. But I have a list of objects in my c# code that I want to use for the report. Is that possible? how?
UPDATE: This is what I have done so far:
public ActionResult Report()
{
string FilePath = "..\\Report.mrt";
report.Load(Server.MapPath(FilePath));
report.Compile();
report["ShamsiCurrDate"] = myGlobalVariables.DateNow;
var Data = GetDataFromDB();
report.Render();
return StiMvcViewer.GetReportSnapshotResult(HttpContext, report);
}
but in the last line (return ...) I get the following error.
System.ArgumentNullException: Value cannot be null.
Parameter name: value
You should add next section to the web.config file: