Out of memory issue converting excel to tiff with infinite background

Hi,

While converting the attached excel file (with infinite background) to tiff, we are experiencing issues with out of memory.
Execution gets stuck on the last line of code and memory keeps growing.

Please suggest some solutions for this.

Aspose.Cells - version 5.3.1.0
.Net framework 4


Sample code used for converting -

public void ConvertExcelToTiff() {
using(var sourceStream=new FileStream(@"D:\test.xlsx", FileMode.Open))
{
using (var destinationStream = new FileStream(@"D:\test.tif", FileMode.OpenOrCreate))
{
var loadOptions=new Aspose.Cells.LoadOptions(Aspose.Cells.LoadFormat.Auto);
var workbook=new Workbook(sourceStream, loadOptions);
workbook.RemoveMacro();

var imageOptions=new ImageOrPrintOptions
{
IsImageFitToPage=true,
ImageFormat=ImageFormat.Tiff
};

var workbookRender = new WorkbookRender(workbook, imageOptions);
workbookRender.ToImage(destinationStream);
}
}
}

Hi,


I have tested your code with latest Aspose.Cells for Net V 7.2.1.6, and couldn’t reproduce the issue at our end. Please let us know your feedback after using this latest fix Aspose.Cells for .NET v7.2.1.6.

Thanks for your reply. I am not able to reproduce this with the newer version v7.2.1.6

Hi,


Its good to know that your issue is resolved. Please feel free to contact us should you feel any other problem.