摘要:
首先添加引用Microsoft.Office.Interop.Excel; /// <summary> /// 将dataGridView导出Excel /// </summary> /// <param name="dataGridView">dataGridView</param> /// <returns>返回是否导出成功,成功返回True,失败返回False</returns> public bool ExportExcel(DataGridView dataGridView) { SaveFi 阅读全文