首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 真我新声带logo 喜欢的就跟上 真我新声带logo 喜欢的就跟上 真我新声带logo 喜欢的就跟上...

真我新声带logo 喜欢的就跟上 真我新声带logo 喜欢的就跟上 真我新声带logo 喜欢的就跟上...

  • 资源大小:79.34 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: WebSite

资 源 简 介

导出Excel组件(B/S或C/S都可以用) using GemBox.ExcelLite //引用文件 ExcelFile excelFile = new ExcelFile() ExcelWorksheet sheet = excelFile.Worksheets.Add("WolfSpider") int columns = dataGridView1.Columns.Count int rows = dataGridView1.Rows.Count for (int j = 0 j < columns j++ ) { sheet.Cells[0, j].Value = dataGridView1.Columns[j].HeaderText } for (int i = 1 i <= rows i++) { for (int j = 0 j < columns j++) { sheet.Cells[i, j].Value = dataGridView1[j, i-1].Value } } excelFile.SaveXls("./guyun.xls") //这里的文件名可以任意定义 -Excel export component (B/S or C/S can be used) using GemBox.ExcelLite // reference document ExcelFile excelFile = new ExcelFile () ExcelWorksheet sheet = excelFile.Worksheets.Add ( " WolfSpider" ) int columns = dataGridView1.Columns.Count int rows = dataGridView1.Rows.Count for (int j = 0 j < columns j++) (sheet.Cells [0, j]. Value = dataGridView1.Columns [j]. HeaderText ) for (int i = 1 i < = rows i++) (for (int j
VIP VIP
0.194052s