Tiff conversion Issue

Hi,

I am getting “A generic error occurred in GDI+.” exception while converting the excel book to tif format with Tiffcompression is none. Plese find the below code for your reference and also I attached the test document.

Workbook _workBook = new Workbook(filename);
ImageOrPrintOptions _printOptions = new ImageOrPrintOptions();
printOptions.TiffCompression = Aspose.Cells.Rendering.TiffCompression.CompressionNone;
WorkbookRender bookRender = new WorkbookRender(_workBook, _printOptions);
bookRender.ToImage(outputFile);

Thanks,

Dhivya

Hi,


I tested the conversion and it works fine with your file. Here is my sample code, the output Tif file is fine.

Workbook _workBook = new Workbook(“e:\test2\Excel1.xls”);
ImageOrPrintOptions _printOptions = new ImageOrPrintOptions();

_printOptions.TiffCompression = Aspose.Cells.Rendering.TiffCompression.CompressionNone;

WorkbookRender bookRender = new WorkbookRender(_workBook, _printOptions);
bookRender.ToImage(“e:\test2\outExcel1.tiff”);

I am using v7.0.4.3, please try it.

Thank you.