S
stephen
Hi all,
I am working with Excel. I read an excel document using ExcelReader and lets
say it has 10 columns. I have to read each record and based on a specified
column peform some activites and then write the result at the end of the
record (so will have 11 columns in total) At the same time, I am performing
other calculations which has to be written at the end of the file (for eg.
Total records, ..., ...).
Currently, I am using ExcelReader and peforming the above operations, it
does the needful but it takes forever (some sheets have like 1000+ records).
Question: If I read the Excel into ExcelReader, am I still connected to the
excel document or have I created an ExcelObject in memory and then working
with it before updating the actual excel document at the end when I say
WorkBook.Save()?
If this approach is not efficient, Is there any other efficient approach?
I was thinking about using DataSet, read the excel document have DataTables
which = the number of sheets, then perform the above operations and then
write it to the excel sheet after cleaning the Excel. Is this a good
approach?
Thanks for all your help,
Stephen
I am working with Excel. I read an excel document using ExcelReader and lets
say it has 10 columns. I have to read each record and based on a specified
column peform some activites and then write the result at the end of the
record (so will have 11 columns in total) At the same time, I am performing
other calculations which has to be written at the end of the file (for eg.
Total records, ..., ...).
Currently, I am using ExcelReader and peforming the above operations, it
does the needful but it takes forever (some sheets have like 1000+ records).
Question: If I read the Excel into ExcelReader, am I still connected to the
excel document or have I created an ExcelObject in memory and then working
with it before updating the actual excel document at the end when I say
WorkBook.Save()?
If this approach is not efficient, Is there any other efficient approach?
I was thinking about using DataSet, read the excel document have DataTables
which = the number of sheets, then perform the above operations and then
write it to the excel sheet after cleaning the Excel. Is this a good
approach?
Thanks for all your help,
Stephen