public List <object> PrintFacility() { List <object> llstarg = new List <object>(); List <BindFacilityVendorAccountReport> llstreview = null; BindGrid(); foreach (ListItem lst in drpVendorSearch.Items) { if (lst.Selected && drpVendorSearch.SelectedValue != "All") { SB.Append(lst.Value + ','); } } if (SB.ToString() != "") { listFacilityVendorAcc.ListVendorID = SB.ToString().Substring(0, (SB.Length - 1)); } SB.Clear(); foreach (ListItem lst in drpFacilitySearch.Items) { if (lst.Selected && drpVendorSearch.SelectedValue != "All") { SB.Append(lst.Value + ','); } } if (SB.ToString() != "") { listFacilityVendorAcc.ListFacilityID = SB.ToString().Substring(0, (SB.Length - 1)); } SB.Clear(); listFacilityVendorAcc.IsStrActive = rdbstatus.SelectedValue; listFacilityVendorAcc.LoggedIN = defaultPage.UserId; listFacilityVendorAcc.Filter = ""; llstreview = lclsservice.BindFacilityVendorAccountReport(listFacilityVendorAcc).ToList(); //List<GetMedicalSupplyPoReportDetails> llstreview = lclsservice.GetMedicalSupplyPoReportDetails(PRmasterID, null, defaultPage.UserId).ToList(); rvFacilityVendorAccreport.ProcessingMode = ProcessingMode.Local; rvFacilityVendorAccreport.LocalReport.ReportPath = Server.MapPath("~/Reports/FacilityVendorAccountReport.rdlc"); ReportDataSource datasource = new ReportDataSource("FacilityVendorAccountReportDS", llstreview); rvFacilityVendorAccreport.LocalReport.DataSources.Clear(); rvFacilityVendorAccreport.LocalReport.DataSources.Add(datasource); rvFacilityVendorAccreport.LocalReport.Refresh(); Warning[] warnings; string[] streamids; string mimeType; string encoding; string extension; byte[] bytes = null; bytes = rvFacilityVendorAccreport.LocalReport.Render("PDF", "", out mimeType, out encoding, out extension, out streamids, out warnings); llstarg.Insert(0, bytes); return(llstarg); }