CSV Reports
DataTableToCsvFile(DataTable,String,List<String>) Method



KellermanSoftware.CsvReports Namespace > CsvWriter Class > DataTableToCsvFile Method : DataTableToCsvFile(DataTable,String,List<String>) Method
The data table to read
A fully qualified file path
The column names in order to output
Create a CSV File from a data table
Syntax
Public Overloads Sub DataTableToCsvFile( _
   ByVal table As DataTable, _
   ByVal filePath As String, _
   ByVal columnNameOrder As List(Of String) _
) 
Dim instance As CsvWriter
Dim table As DataTable
Dim filePath As String
Dim columnNameOrder As List(Of String)
 
instance.DataTableToCsvFile(table, filePath, columnNameOrder)
public void DataTableToCsvFile( 
   DataTable table,
   string filePath,
   List<string> columnNameOrder
)
public:
void DataTableToCsvFile( 
   DataTable^ table,
   String^ filePath,
   List<String^>^ columnNameOrder
) 

Parameters

table
The data table to read
filePath
A fully qualified file path
columnNameOrder
The column names in order to output
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CsvWriter Class
CsvWriter Members
Overload List