public ActionResult Index(ParamBoolandDateModel param) { var mrdindexingModel = _clPatientStatisticsDB.CurrentlyAdmittedList(); ReportViewer reportViewer = new ReportViewer(); reportViewer.ProcessingMode = ProcessingMode.Local; reportViewer.LocalReport.ReportPath = Request.MapPath(Request.ApplicationPath) + @"\Areas\ManagementReports\Reports\PatientStatistics\CurrentlyAdmittedList.rdl"; reportViewer.LocalReport.DataSources.Add(new ReportDataSource("dsCurrentlyAdmittedList", mrdindexingModel)); reportViewer.LocalReport.DisplayName = base.SaveFilestreamtoPDF(reportViewer); ViewBag.ReportViewer = reportViewer; return(View()); }