public void ViewReport(CrystalReportViewer LRptV, int type, string strsearch, bool useparam, string param1, string param2) { bw.ReportProgress(1); switch (type) { case 3: // Visit Schedule [1] if (LRptV.InvokeRequired) { LRptV.Invoke(new MethodInvoker(delegate { LRptV.ReportSource = ViewAllVisitCount(strsearch, param1, param2); })); } break; } bw.ReportProgress(100); }
public void ViewReportA(CrystalReportViewer LRptV, int type, string strsearch) { bw.ReportProgress(1); switch (type) { case 3: // Visit Schedule [1] if (LRptV.InvokeRequired) { LRptV.Invoke(new MethodInvoker(delegate { LRptV.ReportSource = ViewAllActive(strsearch); })); } break; } bw.ReportProgress(100); }
public void ViewReportRegNo(CrystalReportViewer LRptV, int type, string regno) { bw.ReportProgress(1); switch (type) { case 4: // Visit Schedule [1] if (LRptV.InvokeRequired) { LRptV.Invoke(new MethodInvoker(delegate { LRptV.ReportSource = ViewAllVisitScheduleRegNo(regno); })); } break; } bw.ReportProgress(100); }