Indeed, thanks for you infomation!
L
lichengbyd
@lichengbyd
Posts
-
How to fast read excel file, with VC2005 -
How to fast read excel file, with VC2005I'm Using Library for Office // Loop through the data and report the contents. for (int rowCounter = 1; rowCounter <= iRows; rowCounter++) { for (int colCounter = 1; colCounter <= iCols; colCounter++) { index[0]=rowCounter; index[1]=colCounter; COleVariant vData; saRet.GetElement(index,vData); CString szdata(vData); valueString += szdata; valueString += "\t"; } valueString += "\r\n"; } In this example, it's using loop to read cells, the reading speed is not good.
-
How to fast read excel file, with VC2005When read big excel file, it takes many time to read cell one by one.