DataGridView转Excel

世界正与我同在 15 0 TXT 2020-05-15 19:05:54

publicvoidprint(DataGridViewdataGridView1) { //导出到execl try { //没有数据的话就不往下执行 if(dataGridView1.Rows.Count==0) return; //实例化一个Excel.Application对象 Microsoft.Off

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2020-05-15 19:05:54

参考一下,还得修改才能用

Generic placeholder image 卡了网匿名网友 2020-05-15 19:05:54

Generic placeholder image 卡了网匿名网友 2020-05-15 19:05:54

一般吧,看不出来有啥好!

Generic placeholder image 卡了网匿名网友 2020-05-15 19:05:54

正好我能用,哈哈,谢谢了!

Generic placeholder image 卡了网匿名网友 2020-05-15 19:05:54

代码太少,不好用