when i Click on Print button the Above Exception through RvCustomerBill.Visible = true;
RvCustomerBill.Visible = true;
Medical.MedicalDBFDataSetTableAdapters.CUSTOMERBILLTableAdapter adapter = new Medical.MedicalDBFDataSetTableAdapters.CUSTOMERBILLTableAdapter();
MedicalDBFDataSet.CUSTOMERBILLDataTable table = new MedicalDBFDataSet.CUSTOMERBILLDataTable();
adapter.FillBy(table,txtBillId.Text);
ReportDataSource ReportSource = new ReportDataSource("CustomerBillReportDataSet", (DataTable)table);
RvCustomerBill.ProcessingMode = ProcessingMode.Local;
RvCustomerBill.LocalReport.DataSources.Clear();
RvCustomerBill.LocalReport.DataSources.Add(ReportSource);
RvCustomerBill.LocalReport.Refresh();
RvCustomerBill.RefreshReport();
Aucun commentaire:
Enregistrer un commentaire