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);
}
}
}