Sponsors

Chủ Nhật, 9 tháng 3, 2008

Import CSV file to DataTable

I'm preparing a demo right now and for this I'm importing a CSV file to CRM. Especially the piece around the import of data from a CSV file to a DataTable is very generic. I'm sharing it with you guys for if it does make sense for you to use this as well.class CSVReader{ public System.Data.DataTable GetDataTable(string strFileName) { System.Data.OleDb.OleDbConnection conn = new

Không có nhận xét nào:

Đăng nhận xét