标签:datagridview blog http io ar os sp for 数据
using Microsoft.Office.Interop.Excel;
using Excel=Microsoft.Office.Interop.Excel;
//这里Excel和Interop报错,请参考我的另一篇http://blog.csdn.net/xtfnpgy/article/details/41076849
public bool ExportDataGridview(DataGridView gridView,string str_path)
{}
调用:
if(!ExportDataGridview(dataGridView1,"d:\\abc.xls"))
MessageBox.Show("表格中没有数据,无法导出数据!");
标签:datagridview blog http io ar os sp for 数据
原文地址:http://blog.csdn.net/xtfnpgy/article/details/41078063