OutOfMemoryException when saving a workbook as MHT

Hello,



when trying to save a workbook to MHT format, I get an OutOfMemoryException.



I have created code reproducing the problem and have attached a workbook causing the exception to occur.



thanks,



Henrik





namespace AsposeCellsTestOutOfMemory

{

using System;

using System.Diagnostics;



using Aspose.Cells;



class Program

{

static void Main(string[] args)

{

try

{

var l_workBook = new Workbook(“d:\temp\workbook.xls”);

l_workBook.Save(“d:\temp\workbook.mht”);

}

catch (Exception e)

{

Trace.WriteLine("Exception when converting the workbook to mht format: " + e);

throw;

}



}

}

}

Hi,


Thanks for your template file.

Please try our latest version/fix: Aspose.Cells for .NET v8.2.0.3

I have tested your issue/ case using your template file and sample code, it works fine and I do not get any error. The output MHT file is generated fine.

Thank you.

Hello,

and thanks for your quick response. Tested the case in my environment and the new version worked fine.

thanks, Henrik

Hi,


Good to know that your issue is resolved by the new fix. Feel free to write back if you need further help or have some other issue or queries regarding Aspose.Cells APIs, we will be happy to assist you soon.

Thank you.