I need to generate some kind of reports in excel via web system. My current code is as follow (simplified):
//[javascript inside .aspx page]
ExcelApp = new ActiveXObject("Excel.Application");
ExcelSheet = new ActiveXObject("Excel.Sheet");
ExcelSheet.Windows(1).WindowState = 2;
ExcelSheet.Application.Visible = false;
for (i=1; i< [elementNumber]; i++)
{
ExcelSheet.ActiveSheet.Cells(i,1).Value = myXML.documentElement.childNodes(i).text;
}
ExcelSheet.Application.Visible = true;
Even if I populate only few hunded rows it takes about 10 second. Is there any way to speed up this process like create entire sheet in memory instead of populate cell by cell?