C#从datatable或dategridview导出到excel
摘要:
1.datatableDataTable dtqzh= Service.getTableBySql("select * from table where"); if (dtqzh != null && dtqzh.Rows.Count > 0){ this.outLoadExcel(dtqzh); } private void outLoadExcel(DataTable dtqzh) { if (dtqzh.Rows.Count <= 0) { ... 阅读全文
posted @ 2013-01-31 14:49 MyBeN 阅读(3427) 评论(1) 推荐(1) 编辑