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 立即下载 微信扫一扫:分享 微信里点“发现”,扫一下 二维码便可将本文分享至朋友圈。