asp.net - C# Excel Missing First and Last Cell Data -


i have project getting data excel spreadsheet (xls). working on spreadsheets missing first cell , last cell's data.

here's code..

        //get range data         //         var con = new oledbconnection("provider=microsoft.jet.oledb.4.0;data source=" +             sheet + ";extended properties=excel 8.0");         con.open();          //create dataset , fill imformation excel spreadsheet easier refrence         var mydataset = new dataset();          var mycommandcol = new oledbdataadapter(" select * [tubing$a15:f28]", con);         mycommandcol.fill(mydataset);          if (mydataset.tables.count > 0)         {             (var = 0; < mydataset.tables[0].rows.count; i++)             {                 var report = new report                 {                                            item1 = mydataset.tables[0].rows[i][0].tostring(),                     item2 = mydataset.tables[0].rows[i][1].tostring(),                     item3 = mydataset.tables[0].rows[i][2].tostring()                 };             }         }         con.close(); 

so getting data between h15 , f28, not cells.

any appreciated.

matt


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -