c# 操作 execl的dll文件
里面有个文本文件介绍怎么操作 导入dll文件,具体工具箱中 选择项 添加<br> ExcelFile excelFile = new ExcelFile();<br> ExcelWorksheet sheet = excelFile.Worksheets.Add("WolfSpider");<br><br> int columns = dataGridView1.Columns.Count;<br> int rows = dataGridView1.Rows.Count;<br><br> for (int j = 0; j < columns;j++ )<br> {<br> sheet.Cells[0, j].Value = dataGridView1.Columns[j].HeaderText;<br> }<br> <br> for (int i = 1; i <= rows; i++)<br> {<br> for (int j = 0; j < columns; j++)<br> {<br> sheet.Cells[i, j].Value = dataGridView1[j, i-1].Value;<br> }<br> }<br><br> excelFile.SaveXls("./WolfSpider.xls");//保存位置
- 1
- 粉丝: 35
- 资源: 3
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
- 1
- 2
前往页