Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi,
why I still get result 255 columns as I have approximately 280 in my test1.xlsx here is the code used string connectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\test1.xlsx;Extended Properties=""Excel 12.0;HDR=YES;"""; string strSQL = "SELECT * FROM [test$]"; OleDbConnection excelConnection = new OleDbConnection (connectionString); OleDbCommand dbCommand = new OleDbCommand(strSQL, excelConnection); OleDbDataAdapter dataAdapter = new OleDbDataAdapter (dbCommand); System.Data.DataTable dTable = new System.Data.DataTable (); dataAdapter.Fill(dTable); Trace.WriteLine(dTable.Columns.Count.ToString ()); |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading Excel 2007 Rows in C# / .Net | Excel Programming | |||
Reading and writing to ini files in Excel 2007 | Excel Programming | |||
EXCEL 2007 reading E as power of ten | Excel Discussion (Misc queries) | |||
Excel: reading tables with multiple rows and columns | Excel Programming | |||
Stop Excel reading 01/02 as 1st February 2007 | Excel Discussion (Misc queries) |