Hello,
We are using Aspose.Cells to convert xls to tiff and it's been working fine.
We ran into this issue recently where attached xls file converted to attached tif file; image is not readable.
Following is set before SheetToImageByPage() call:
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.ImageFormat = ImageFormat.Tiff;
imgOptions.HorizontalResolution = 200;
imgOptions.VerticalResolution = 200;
imgOptions.TiffCompression = TiffCompression.CompressionCCITT4;
imgOptions.PrintingPage = PrintingPageType.IgnoreBlank;
Then following code is used to generate images:
int sheetPageCount = sheet.GetPageCount(imgOptions.PrintingPage);
for (int j = 0; j < sheetPageCount; j++)
sheet.SheetToImageByPage(j, "Image" + j + ".tif", imgOptions);
This issue was initially found with Aspose.Cells.dll (v 4.8.0.5) and was reproduced in latest Aspose.Cells.dll (v 4.8.1.0).
It looks like setting in 'Page Setup' causes this issue:
1) Fit to: 1 page(s) wide by 1 tall
2) Print area: A:K
Please review attached files & provide us a fix ASAP. Urgent customer request!
Thank You.