資源簡介
導出excel 超好用封裝類庫 帶dll org.in2bits.MyXls.dll
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Web;
using?System.Collections;
using?System.Data;
using?org.in2bits.MyXls;
using?System.Reflection;
using?Models;
using?System.IO;
using?System.Web.UI;
namespace?TempCms.comment
{
????public?class?dropdown?:?System.Web.UI.Page?
????{
????????///?
????????///?導出excel表
????????///?
????????///?表內(nèi)容?list集合
????????///??表頭字段
????????///?文件名稱加后綴
????????public?void?dataToExcel(IList?list?string[]?columns?string?fileName)
????????{
????????????DataTable?dt?=?new?DataTable();
????????????dt?=?ToDataTable(list?columns);
????????????XlsDocument?xls?=?new?XlsDocument();
????????????//xl
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????7919??2016-07-11?09:07??導出excle\dropdown.cs
?????文件??????125952??2016-07-11?09:07??導出excle\org.in2bits.MyXls.dll
?????目錄???????????0??2016-07-11?09:07??導出excle\
- 上一篇:c# 視覺檢測 工具源碼
- 下一篇:關于在C#程序中,調用攝像頭的問題
評論
共有 條評論