Hi,
I am using Aspose.Cells 7.1.0.0.
Machine config:
Quad Core
16 GB
To write 1 million rows ( each row having 26 columns) to xlsx file, it takes 9 mins:
_worksheetInstance.Cells.ImportDataTable(currentTable, IsHeaderRequired, (IsHeaderRequired ? 15 : 0), 0, initialTable.Rows.Count, initialTable.Columns.Count, false, “yyyy/MM/dd”, true);
I have divided 1 million rows into 4 chunks and tried to write using TPL in the same worksheet which gave different errors like Index out of Array, System .Out.of Memory Exception at different times.
Using Light Cells API , time taken has reduced to 6 mins.
Is there any way to reduce the time for excel generation further?
Also how to use LightCells API for xls, because when I am providing SaveFormatType of xls, data is not saved in excel.
ooxmlSaveOptions = new OoxmlSaveOptions(SaveFormat.Excel97To2003);
ooxmlSaveOptions.LightCellsDataProvider = new TestDataProvider(_workbook, resultSet.Tables[0].Rows.Count +(IsHeaderRequired?16: 0), resultSet.Tables[0].Columns.Count,resultSet.Tables[0],tableHeader,IsHeaderRequired);
Regards,
Ranadeep