Posted 8 September 2017, 5:24 am EST
Hi,
We use FarPoint Spread in version 4.0.3501.2008.
This exception is only thrown on large worksheets. We're talking about 50'000 - 60'000 rows and 90 columns.
First step is filling an object[,] array and afterwards calling the method sheet.SetArray() to copy the content from the array to the worksheet. This is working very well and is quite fast. After that, we call SaveExcel(). The memory is increasing continously up to the limit of 920MB. Then the OutOfMemoryException will be thrown.
The same thing we did with the newest release 4.0.3522.2008. The same thing happens. Only the exception message is a bit different
=========== 22.07.2010 / 09:12:15 ===========
Error saving Excel file
at System.Collections.ArrayList.set_Capacity(Int32 value)
at System.Collections.ArrayList.EnsureCapacity(Int32 min)
at System.Collections.ArrayList.Add(Object value)
at ci.a(Int16 A_0, ArrayList A_1, ArrayList A_2, ArrayList A_3, ArrayList A_4)
at as.a(Int16 A_0, MemoryStream A_1, ArrayList A_2, ArrayList A_3, ExcelSaveFlags A_4)
at as.a(Int16 A_0, MemoryStream A_1, ExcelSaveFlags A_2)
at as.a(Stream A_0, ExcelSaveFlags A_1)
at FarPoint.Excel.ExcelFileHandler.a(String A_0, ExcelSaveFlags A_1)
at FarPoint.Excel.ExcelFileHandler.Save(String fileName, ExcelSaveFlags saveFlags)
at ci.a(String A_0, ExcelSaveFlags A_1)
at c9.a(String A_0, Stream A_1, ExcelSaveFlags A_2, ExcelWarningList A_3)
=========== end of inner exception ===========
at c9.a(String A_0, Stream A_1, ExcelSaveFlags A_2, ExcelWarningList A_3)
at FarPoint.Win.Spread.FpSpread.SaveExcel(String fileName, ExcelSaveFlags saveFlags, ExcelWarningList warningList)
at FarPoint.Win.Spread.FpSpread.SaveExcel(String fileName)
at ALM.BL.Excel.ExportSpreadToExcel(IEnumerable`1 sheetViews, String path, Boolean adjustColumnWidth, Boolean openAfterExport)
at ILIAS.UI.EVData.Plausibility.PlausibilityExport.ExportPlausibility(String path)
at ILIAS.UI.EVData.Plausibility.CollectionTables.UcCollectionPivot.PivotExport(String path)
at ILIAS.UI.EVData.Plausibility.CollectionTables.UcCollectionPivot.BtnExport_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Kind regards,
Danny Meier