墨染白青

越努力越幸运 一枚专心*码的女程序猿

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2019年9月4日

摘要: private void btn_excel_Click(object sender, EventArgs e) { if (dataGridView1.Rows.Count>0) { string a = "D:" + "\\KKHMD.xls"; ExportExcels(a, dataGridView1); } else { MessageBox.Show("数据为空,不能导出!"); } 阅读全文
posted @ 2019-09-04 15:50 墨染白青 阅读(431) 评论(0) 推荐(0)

摘要: /// <summary> /// 执行导出数据 /// </summary> public void ExportToExecl() { System.Windows.Forms.SaveFileDialog sfd = new SaveFileDialog(); sfd.DefaultExt = 阅读全文
posted @ 2019-09-04 15:48 墨染白青 阅读(197) 评论(0) 推荐(0)