CsvHelperDtToCsv Method | Helper帮助文档 |
导出报表为Csv
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool DtToCsv( DataTable dt, string strFilePath, string tableheader, string columname )
Public Shared Function DtToCsv ( dt As DataTable, strFilePath As String, tableheader As String, columname As String ) As Boolean
public: static bool DtToCsv( DataTable^ dt, String^ strFilePath, String^ tableheader, String^ columname )
static member DtToCsv : dt : DataTable * strFilePath : string * tableheader : string * columname : string -> bool
Parameters
- dt
- Type: System.DataDataTable
DataTable - strFilePath
- Type: SystemString
物理路径 - tableheader
- Type: SystemString
表头 - columname
- Type: SystemString
字段标题,逗号分隔
Return Value
Type: Boolean[Missing <returns> documentation for "M:HD.Common.CsvHelper.DtToCsv(System.Data.DataTable,System.String,System.String,System.String)"]
See Also