public void PrintBill() { try { List <OrderMaster> _bill = OrderMasterCollection.GetAll().FindAll(x => x.OrderBILL_ID == billid); string BillNo = OrderBillMaster.GetByOrderBILL_ID(billid).BILLNO; ReportViewer1.ProcessingMode = ProcessingMode.Local; this.ReportViewer1.LocalReport.EnableExternalImages = true; ReportViewer1.LocalReport.ReportPath = Server.MapPath("/Report/PickUpOrder.rdlc"); ReportDataSource datasource = new ReportDataSource("ProductOrder", _bill); this.ReportViewer1.LocalReport.DataSources.Clear(); this.ReportViewer1.LocalReport.DataSources.Add(datasource); this.ReportViewer1.LocalReport.Refresh(); } catch (Exception ex) { } }
public void grid() { gdvNotice.DataSource = OrderMasterCollection.GetAll().FindAll(x => x.OrderBILL_ID == billid); gdvNotice.DataBind(); }