Hi
I have to read excel file,
i can able to read string data with below code
conValue[recCount] += cells.item(row, fields[15]).value().bstr();
& i can able to read int data with below code
conValue[recCount] += cells.item(row, fields[15]).value().double();
if i use
if(cells.item(row, fields[15]).value().double())
{
conValue[recCount] += cells.item(row, fields[15]).value().double();
}
else
{
conValue[recCount] += cells.item(row, fields[15]).value().bstr();
}
then few times sting values are are getting skipped while reading.
In my case i have both int & string values to be read.
please suggest how to read data of any type in excel.
*This post is locked for comments