SheetRender.ToTiff reporting invalid parameter

I call SheetRender.ToTiff with a valid path. The renderer is created with these options:

imageOptions.TiffCompression = Aspose.Cells.Rendering.

TiffCompression.CompressionLZW;

imageOptions.ImageFormat = System.Drawing.Imaging.

ImageFormat.Tiff;

imageOptions.TiffCompression = Aspose.Cells.Rendering.

TiffCompression.CompressionLZW;

imageOptions.ImageFormat = System.Drawing.Imaging.

ImageFormat.Tiff;

I get an exception paramater is not valid. This is with the latest version on your website

Hi,


I have tested your scenario with latest fix version of Aspose.Cells for .NET v5.3.3.2 and below source code. It is working fine. Output image is attached for your reference.

C# Sample Code

Aspose.Cells.Workbook book = new Aspose.Cells.Workbook(“C:\temp\00008521.xls”);

Aspose.Cells.Worksheet sheet = book.Worksheets[0];

Aspose.Cells.Rendering.ImageOrPrintOptions options = new Aspose.Cells.Rendering.ImageOrPrintOptions() { ImageFormat= System.Drawing.Imaging.ImageFormat.Tiff, TiffCompression = Aspose.Cells.Rendering.TiffCompression.CompressionLZW };

Aspose.Cells.Rendering.SheetRender sheetRender = new Aspose.Cells.Rendering.SheetRender(sheet, options);

sheetRender.ToTiff(“C:\temp\image.tiff”);

Hi,

I think you may try our latest version i.e. Aspose.Cells for .NET v5.3.3.2 as Babar is using with your template file.

Thank you.