We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

System.OutOfMemoryException on 64 bit OS

hi,
Aspose Group

its difficult to replay the error.
On the 32 bit OS when run it,its works fine.
but when I Run this on 64 bit OS,its Error.
can you help me? I send the excel file made out on 32 bit OS .

OS:Windows Server 2008 R2 Standard 64bit
framework 4
IIS 7.5


Creat chart MultiLevelBarStacked100, when chart.Calculate() is call in 64bit OS、Exception out。
Chart:rows:11、cols:17 (Report08040010_ec8ce169-6705-46e9-a071-2ac39a251ad8.xls

error message:
System.OutOfMemoryException: メモリが不足しています。
場所 System.Drawing.Drawing2D.LinearGradientBrush..ctor(RectangleF rect, Color color1, Color color2, Single angle, Boolean isAngleScaleable)
場所 System.Drawing.Drawing2D.LinearGradientBrush..ctor(RectangleF rect, Color color1, Color color2, Single angle)
場所 ”.—.„(GraphicsPath , Pen , Boolean , Single )
場所 ”.ž–.„(GraphicsPath , Boolean , Single )
場所 •.•.Œ(” , RectangleF , Boolean )
場所 •.•.(“ , „” , RectangleF , Color , Single , ” )
場所 •.•.e(“ , ” , • , Rectangle , Int32 )
場所 •.•.Œ(” )
場所 ”.—.—–(Chart )
場所 ”.‹.—–(Chart , Boolean )

Hi Fang,

Thanks for your posting and using Aspose.Cells.

Please download and try the latest version: Aspose.Cells
for .NET v8.3.1.1
it should fix your issue.

I have tested this issue with the following sample code and it generated the pdf file successfully. I have attached the output pdf for your reference.

C#


string filePath = @“F:\Shak-Data-RW\Downloads\Report08040010_ec8ce169-6705-46e9-a071-2ac39a251ad8.xls”;


Workbook workbook = new Workbook(filePath);


workbook.CalculateFormula();


workbook.Save(“output.pdf”);