ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   determinig datatype in excel (https://www.excelbanter.com/excel-programming/357916-determinig-datatype-excel.html)

latha

determinig datatype in excel
 
Hi
I am using aso.net 2005 with excel with the following settings

rk.SetValue("ImportMixedTypes", "Text");
rk.SetValue("TypeGuessRows", 0);
Imex=1
HDR=Yes

I am having problem when reading "2012101", it is converting into
"2.01214e+006" automatically.
I do not want this conversion and at the same time, i cannot format
someone's excel sheet.

Can someone tell me how to read data as it is?
--
Thanks
Soly

JoseValencia

determinig datatype in excel
 
Hi latha,
I have the same problem , please if you have fixed it let me know replying
in the newsgroup
Thanks in advacne

"latha" wrote:

Hi
I am using aso.net 2005 with excel with the following settings

rk.SetValue("ImportMixedTypes", "Text");
rk.SetValue("TypeGuessRows", 0);
Imex=1
HDR=Yes

I am having problem when reading "2012101", it is converting into
"2.01214e+006" automatically.
I do not want this conversion and at the same time, i cannot format
someone's excel sheet.

Can someone tell me how to read data as it is?
--
Thanks
Soly



All times are GMT +1. The time now is 05:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com