摘要:
首先要添加一个引用:using system.Excel(似乎是这个) Excel.Application excel = new Excel.Application();excel.Application.Workbooks.Add(true); excel.Visible = true; for (int i = 0; i < this.dataGridView1.ColumnCount; i++) { excel.Cells[1, i + 1] = this.dataGridView1.Columns[i].HeaderText; } for (int i = 0; i < 阅读全文
posted @ 2012-01-17 21:53
空明
阅读(153)
评论(0)
推荐(0)
浙公网安备 33010602011771号