Ejemplo n.º 1
0
        private void btnExcelStatment_Click(object sender, EventArgs e)
        {
            receive.frmCheckReceive rpt = new frmCheckReceive();
            rpt.StartPosition = FormStartPosition.CenterScreen;   // กำหนด frm ย่อย ให้อยู่ตรงกลาง
            string Month = cboMonth.SelectedIndex.ToString();
            string Year = cboYear.SelectedIndex.ToString();

            rpt.setSaleMonth = Month;
            rpt.setSaleYear = Year;
            rpt.ShowDialog();
        }
Ejemplo n.º 2
0
 private void btnConvertExcel_Click(object sender, EventArgs e)
 {
     Class.ExportToExcel.Export2Excel(dgvPrintReceivemonthyear);
     frmCheckReceive frm = new frmCheckReceive();
     frm.Close();
 }