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: sholle **
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: sholle **
If the data is stored in the excel sheet as some type of numeric the reader is working correctly. Any formatting performed on the column to make it look like 0100 will not affect the data output. What I could suggest is selecting the entire sheet in excel and forcing it to text format.
I generally do all my data formatting in whatever target system I'm using the data in. There are various ways to right justify zero fill data in most languages. How are you using the data?