Free Support Forum - aspose.com

An error occurred while exporting the report. System.OutOfMemoryException

Hi,


I’m currently evaluating Aspose.Cells for Reporting Services 1.5.0 to see if it will solve the issues we’re having with exporting large reports from SSRS 2008 to Excel.

However, I can’t get it to export to Excel2007 without getting this error in the report:

An error occurred while exporting the report.
Exception
of type ‘System.OutOfMemoryException’ was thrown.
at
Aspose.Cells.xfe2178c1f916f36c.get_xb70a9d14469748bf()

at
Aspose.Cells.ReportingServices.Utils.xc5e7b7dc64f3f7a6.x963c409ed26f1ec4(xfe2178c1f916f36c
x44ecfea61c937b8e, Style x42150ac05fb4f3e8, x55d6fd5bda371071
xa70c7ccd3278240f)

at
Aspose.Cells.ReportingServices.Utils.xc5e7b7dc64f3f7a6.xcb234b3c163e2123(TextBox
x96a05f442e97b6b9, x459697a6ee6e9c50 x6a9b1245e95ccef5)

at
Aspose.Cells.ReportingServices.ReportItem.xe1416339bb0942c1.GetFormatDefine()

at
Aspose.Cells.ReportingServices.ReportItem.x77f91d2130d08599.GetFormatDefine()

at
Aspose.Cells.ReportingServices.ReportItem.x4baaeff2346b420f.x6afdbeb67b972fb3(ReportItem
xccb63ca5f63dc470, Int32 x72d92bd1aff02e37, Int32 xe360b1885d8d4a41)

at
Aspose.Cells.ReportingServices.ReportItem.x4baaeff2346b420f.x2c44f534085b543c(TablixMember
x25f90284444cb6d5, x693f8d3047025a5e xa806b754814b9ae0, Int32
xa447fc54e41dfe06, Int32 xc941868c59399d3e, Boolean&
x8fc2d66566293701)

at
Aspose.Cells.ReportingServices.ReportItem.x4baaeff2346b420f.x1c2f1
<br><br>During the export, the ReportingServicesService.exe process on the report server climbs to a little over 1GB before returning this error embedded in an Excel 2007 file.  Is there a way to increase the amount of memory available to Aspose.Cells?  The server we're running it on has 16GB of RAM, and it has plenty of memory left when it fails.<br><br>Thanks</div>

Could you please post your rdl here? And what's the amount of data in your report? Does it work fine when exporting as Excel2003 format?

Thank you.

Thanks for responding.

I've attached the RDL file.

The number of rows returned range differently based on the user's input, but it can get all the way up to 800K rows, with 33 columns. There is another report that is even bigger than this, which incorporates charts and graphs on top of a large dataset. Of course, the export works when the number of rows is small, but that's not what we need it for...

Exporting using Excel 2003 in Aspose.Cells also fails and results in the same OutOfMemoryException error, but even if it did work, it wouldn't be of any use to us because Excel 2003 can only hold 65K rows.

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the RDL file.

We will look into your issue and get back to you soon.

Thank You & Best Regards,