public ActionResult GetReport() { StiReport report = new StiReport(); report.Load(Server.MapPath("~/Content/Reports/TwoSimpleLists.mrt")); return(StiMvcDesignerFx.GetReportResult(report)); }
public ActionResult GetReport(string id) { // Create the report object and load data from xml file var report = new StiReport(); report.Load(Server.MapPath("~/Content/ReportTemplates/" + id + ".mrt")); return(StiMvcDesignerFx.GetReportResult(report)); }