Hello,
Hi,
richard-4:I have created a sample application but I am having trouble attaching it (I upload it but then the upload window goes to a 404 page). Can I instead email it to you, if so, please send me your address?In my testing it crashes with OutOfMemoryException on line 153 in AsposeHelper.vb:Dim pivotIndex As Integer = pivotTables.Add(String.Format("={0}!A1:{1}", dataSheetTitle, CellsHelper.CellIndexToName(row, dataSheet.Cells.MaxColumn)), "A1", "PivotTable1")At the time it crashed the application was consuming about 1.5GB & my system still has a lot of free memory available..............
Amjad Sahi:Hi,richard-4:I have created a sample application but I am having trouble attaching it (I upload it but then the upload window goes to a 404 page). Can I instead email it to you, if so, please send me your address?In my testing it crashes with OutOfMemoryException on line 153 in AsposeHelper.vb:Dim pivotIndex As Integer = pivotTables.Add(String.Format("={0}!A1:{1}", dataSheetTitle, CellsHelper.CellIndexToName(row, dataSheet.Cells.MaxColumn)), "A1", "PivotTable1")At the time it crashed the application was consuming about 1.5GB & my system still has a lot of free memory available..............Thanks for providing further details.I think you may try using some third party websites like dropbox or others etc. to update your sample project and provide us the link to download it. We will check your issue soon.Thank you.
Hi,
Hi Amjad,
Thank you for your response.
I made the changes in the sample application that you suggested & it produced the final XLSX with pivottable successfully.
- However, the second change, commenting out .CalculateData(), does not meet our requirements because we want the XLSX file saved with the pivot data already calculated (if for example you open the XLSX in Excel Viewer then it does not calculate the data itself).
I tested the sample app again with only making the 1st change (MemoryPreference) but it still hits OutOfMemory exception on .CalculateData(). At the time it crashed the process was only consuming 1200mb mb of memory & my machine still had over 1GB memory available.
Why does this happen?
- More importantly: I made the 1st change (MemoryPreference) in our production application code but it is still throwing the OutOfMemory exception on the cells.ImportDataTable() line – the same problem reported in my first post - which I don’t understand why.
It throws this exception when the process is only consuming ±800 mb of memory (& my machine still has over 1GB memory available).
How we can overcome this?
We tested creating this exact same report with the exact same large data set in a previous version of our application which uses Microsoft.Interop.Excel with Excel 64bit installed and it created the report successfully.
Our current application version uses Aspose.Cells instead of Microsoft.Interop.Excel and now our client is complaining because that they cannot produce the same report as before.
Your help in this matter is highly appreciated.
PS: We are using Aspose.Cells with a purchased Aspose.Total licence.
Thanks.
Richard
richard-4:2. More importantly: I made the 1st change (MemoryPreference) in our production application code but it is still throwing the OutOfMemory exception on the cells.ImportDataTable() line – the same problem reported in my first post - which I don’t understand why.
It throws this exception when the process is only consuming +-800 mb of memory (& my machine still has over 1GB memory available).
How we can overcome this?
Please try our latest version Aspose.Cells for .NET v8.6.1 (you may download it from Downloads module) as we have published our next official version now. Please make sure that you do not use older version in your production server as it is quite possible your project on the server is still referencing to older Aspose.Cells version.
Thank you.