메소드 | 설명 | |
---|---|---|
ReadExcelToDataSet ( string excelPath ) : |
将Excel转成DataSet
|
|
ReadExcelToDataSet ( string excelPath, bool existheader, int top = null ) : |
将Excel转成DataSet
|
|
WriteExcel ( |
导出Excel
|
|
WriteExcel ( |
写入Excel
|
|
WriteExcel ( string json, bool addheader = true, string sheetName = "" ) : void |
生成Excel
|
|
WriteExcel ( string json, string title, bool addheader, string extInfo = "", bool addPic = false, string alignJson = "", string sheetName = "table1", string alignName = "table2" ) : void |
Json保存成Excel
|
|
WriteExcel ( string datalocation, string json, string title, string headerJson, string extInfo = "", bool addPic = false, string alignJson = "", string sheetName = "table1", string alignName = "table2" ) : void |
Json保存成Excel
|
|
WriteSpecialExcel ( string datalocation, |
写入Excel
|
메소드 | 설명 | |
---|---|---|
AddDataTable ( OfficeOpenXml.ExcelWorksheet worksheet ) : |
根据sheet名称生成DataTable
|
|
AddExtInfo ( OfficeOpenXml.ExcelWorksheet worksheet, string info ) : void |
添加时间
|
|
AddPic ( OfficeOpenXml.ExcelWorksheet worksheet ) : void |
添加图片到Excel
|
|
AddRow ( OfficeOpenXml.ExcelWorksheet worksheet, |
添加数据行
|
|
AddSheet ( |
添加Sheet
|
|
AddTitle ( OfficeOpenXml.ExcelWorksheet worksheet, string title ) : void |
添加表头
|
|
ReadXlsx ( string path, bool header, int top ) : |
读取Excel2007
|
|
SetWorksheetBorder ( System.Drawing.ColorConverter wcc, OfficeOpenXml.ExcelRange rangeArea ) : void |
生成图文excel报表 设置边框
|
public static ReadExcelToDataSet ( string excelPath ) : |
||
excelPath | string | |
리턴 |
public static ReadExcelToDataSet ( string excelPath, bool existheader, int top = null ) : |
||
excelPath | string | excelPath(String) |
existheader | bool | 是否有表头 |
top | int | 取多少行 |
리턴 |
public WriteExcel ( |
||
set | 数据源 | |
addheader | bool | 是否添加列头 |
리턴 | void |
public WriteExcel ( |
||
set | 数据源 | |
title | string | 表头 |
addheader | bool | 是否需要添加标题 |
extInfo | string | 信息 |
addPic | bool | 是否添加图片 |
리턴 | void |
public WriteExcel ( string json, bool addheader = true, string sheetName = "" ) : void | ||
json | string | 数据 |
addheader | bool | 是否添加列头 |
sheetName | string | sheet名称 |
리턴 | void |
public WriteExcel ( string json, string title, bool addheader, string extInfo = "", bool addPic = false, string alignJson = "", string sheetName = "table1", string alignName = "table2" ) : void | ||
json | string | Json字符串 |
title | string | 表头 |
addheader | bool | 是否添加列头 |
extInfo | string | 扩展信息 |
addPic | bool | 是否添加图片 |
alignJson | string | 列对齐方式 |
sheetName | string | Name of the sheet. |
alignName | string | Name of the align. |
리턴 | void |
public WriteExcel ( string datalocation, string json, string title, string headerJson, string extInfo = "", bool addPic = false, string alignJson = "", string sheetName = "table1", string alignName = "table2" ) : void | ||
datalocation | string | datalocation(String) |
json | string | Json字符串 |
title | string | 表头 |
headerJson | string | headerJson(String) |
extInfo | string | 扩展信息 |
addPic | bool | 是否添加图片 |
alignJson | string | 列对齐方式 |
sheetName | string | Name of the sheet. |
alignName | string | Name of the align. |
리턴 | void |
public WriteSpecialExcel ( string datalocation, |
||
datalocation | string | 数据加载位置 |
set | 数据源 | |
title | string | 表头 |
headerJson | string | headerJson(String) |
extInfo | string | 信息 |
addPic | bool | 是否添加图片 |
리턴 | void |