Quantcast
Channel: Excel Data Reader - Read Excel files in .NET
Viewing all articles
Browse latest Browse all 448

Commented Unassigned: Numeric strings are converted to numbers [13688]

$
0
0
When reading an .xlsx sheet with IExcelDataReader.AsDataSet strings that only contain numbers are converted to decimals
like 0100 becomes 100.0
If I use ' to force a string it works.

I would be greatful for a quick update.
Comments: ** Comment from web user: LandLubberNL **

The spreadsheet cell has a formula to extract a piece of a string and the resulting string is a General Ledger name. I can't rely on it to be a certain length, I have to retrieve the actual string that is the result in Excel. (Excel shows it correctly as a string). If it happens to be 00100, the reader returns a datatable with a field of type double and a value of 100.0 , it should be a field of type string, value "00100".


Viewing all articles
Browse latest Browse all 448

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>