2
Shouts

Web 2.0 | Using ODBC driver to access XLS, XLSX, TXT or CSV files.

posted by farooqkaiserfarooqkaiser 888 days, 4 hours, 46 minutes ago
Saturday, December 19, 2009 4:24:09 AM GMT

In this article, i will examined how to access XLS, XLSX, TXT or CSV files. It is very easy to access these files using ODBC drivers.

Here are Connection Strings

Excel Connection String

"Provider=Microsoft.Jet.OLEDB.4.0; data source={0}; Extended Properties=\"Excel 8.0;HDR=No;IMEX=1;\"";

Excel 2007 Connection String

"Provider=Microsoft.ACE.OLEDB.12.0; data source={0}; Extended Properties=\"Excel 12.0;HDR=No;IMEX=1;\"";

CSV or Text Connection String

"Provider=Microsoft.Jet.OLEDB....

category: ASP.NET | clicked: 1 | | source: www.fairnet.com | show counter code
tags: XLS, C#, XLSX, CSV

No comments yet, be the first one to post comment.

To post your comment please login or signup