コード例 #1
0
 private void cmsFindClient_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     if (e.ClickedItem.Text == "Export To Excel")
     {
         CCFBGlobal.ExportToExcel(dgvClientList, "ClientList_" + DateTime.Now.Year.ToString()
                                  + "_" + CCFBGlobal.formatNumberWithLeadingZero(DateTime.Now.Month));
     }
 }
コード例 #2
0
        private void cmsdgvCSFP_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            string tmp = "CSFPClients-" + cboYear.Text + '-' + cboMonth.Text;

            if (cboFilterFld.SelectedIndex > 0 && cboFilter.SelectedIndex > 0)
            {
                tmp += "-" + cboFilterFld.Text + " " + cboFilter.Text;
            }
            CCFBGlobal.ExportToExcel(dgvCSFP, tmp);
        }