Hi, I have a large excel file(100meg) which I need to extract values from. I downloaded aspose.cells and created a small sample program:
foreach (Worksheet sht in workbook.Worksheets)
{
if (sht.IsVisible == true)
{
Object[,] vals2 = sht.Cells.ExportArray(0, 0, sht.Cells.MaxRow + 1, sht.Cells.MaxColumn + 1);
}
else
{
++i;
}
}
when I run this program the memory usage is very very high. Is there a better way to read these values? Is there anyway I could read from a stream x bytes at a time rather than having to load the whole file up? All I want to do is read from the file, no writing at all. Could the file possibly be read worksheet at a time??
I’m looking to use this product on a server and large memory spikes like this would worry me as I would have multiple instances of this program running.
Thanks, Paul