C#导入、导出Excel的代码.docxVIP

  • 2
  • 0
  • 约4.18千字
  • 约 3页
  • 2019-10-11 发布于河北
  • 举报
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using Microsoft.Office.Interop.Excel; namespace ExcelTools { public class ReadingAndwriting { /// summary /// 导出Excel /// /summary /// param name=gridViewdataGridView控件名/param /// param name=filename路径名/param public static void WritingExcel(DataGridView gridView, string filename) { Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application(); Workbook book =

文档评论(0)

1亿VIP精品文档

相关文档