chart.ToImage() + Windows 8.1

Hi,



I reinstalled my Laptop with windows 8.1 (previous windows 7) and I am experiencing some strange behaviors in the Aspose.Cells DLL



For some reason the same code gives on windows 8.1 an image with back borders.



This is the code I am using:



ImageOrPrintOptions options = new ImageOrPrintOptions();

options.ImageFormat = ImageFormat.Tiff;

// options.ChartImageType = ImageFormat.Tiff;





options.HorizontalResolution = 300;

options.VerticalResolution = 300;

options.TiffCompression = TiffCompression.CompressionCCITT4;



Chart chart = workbook.Worksheets[tab].Charts[0];



chart.ChartArea.Border.IsVisible = false;

chart.ToImage(tempPath, options);





With kind regards

Wim

Hi,


Thanks for providing us some details.

Please make sure that you are using the same Aspose.Cells.Dll as you were using on Windows 7 previously. We also recommend you to kindly try our latest version/fix: Aspose.Cells for .NET v8.5.1:

If you still find the issue, kindly provide your template Excel file having chart in it, we will test your issue soon.

Thank you.

Hi,



I used the new DLL in the project but that didn’t change the output.



I’ll find the .xls and .xlsx I am using included.



With kind regards

Wim

Hi,


Thanks for the template files.

I have evaluated your issue using your template file on Windows 8. It looks your issue is limited by the TIFF compression you have specified. I think you may try to change the line of code from your code segment:
i.e.,
options.TiffCompression = TiffCompression.CompressionCCITT4;

to:
options.TiffCompression = TiffCompression.CompressionLZW;

it will work fine.

Thank you.