Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi guys,
I use Oledb driver read content from a excel spread sheet to my dataset . I have a column in excel file contains only numbers (no mixed type). The problem is that if the number is very long, like 1234567.1, there is a chance I get something like 1234567.1000001 in dataset. But for shorter number, it is all fine. I am using .net framework 1.1. The code is like this: string connString = "PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA SOURCE='t.xls';Extended Properties=\"Excel 8.0;HDR=1;IMEX=1\""; OleDbConnection myConn = new OleDbConnection(connString); OleDbDataAdapter adapter = new OleDbDataAdapter("select * from [sheet1$]", myConn); DataSet ds = new DataSet(); adapter.Fill(ds); Please help. Thanks in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel problem reading data when aflanumreic field is numeric | Excel Programming | |||
how to tell excel to read numeric field as character fr a csv file | Excel Discussion (Misc queries) | |||
Problem pasting numeric data from Access into Excel | Excel Discussion (Misc queries) | |||
Converting text data type to numeric | Excel Programming | |||
Excel VBA - Data Type Conversion problem | Excel Programming |