private void btnPrintbyDate_Click(object sender, EventArgs e) { try { ViewReport rv = new ViewReport(); rv.date1 = FromdateTimePicker.Text; rv.date2 = TodateTimePicker.Text; rv.ReportType = "ShowReportbyCustomerDate"; rv.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnprintbyName_Click(object sender, EventArgs e) { try { ViewReport rn = new ViewReport(); rn.custmer = comboNameFilter.Text; rn.ReportType = "ShowReportbyCustomerList"; rn.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void buttonPrint_Click(object sender, EventArgs e) { try { ViewReport rc = new ViewReport(); rc.custmername = comboCustomerName.Text; rc.ReportType = "ShowReportbyCustomerName"; rc.timetableid = timetableid; rc.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }