示例#1
0
文件: Form1.cs 项目: MarkDat/Gym
        private void exportExcelToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string fileName = "GymManager.xlsx";
            string customExcelSavingPath = Application.StartupPath + @"\Assets\" + fileName;

            ExcelUtil.GenerateExcel(ExcelUtil.ConvertToDataTable(dao.GetListGymer()), customExcelSavingPath);
            MessageBox.Show("OK ! Dã lưu file trong thư mục Assets \r\n path:" + customExcelSavingPath);
        }