We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Transparency issue when exporting shape to image

Hello! I’m using SheetRender to export a range containing a shape to an image. The output image has a background pattern which is wrong. Please check the attached console project and screenshots!

Thank you.

Hi,

Thanks for your sample project and using Aspose.Cells for .NET

You are right. I was able to replicate this issue using your code and xls file with the latest version:
Aspose.Cells
for .NET v7.3.0.2



We have logged this issue in our database. We will look into it and fix the problem. Once the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSNET-40920.

C#


string filePath = @“F:\TextBoxTransparency.xls”;


Workbook workbook = new Workbook(filePath);


Worksheet worksheet = workbook.Worksheets[0];


ImageOrPrintOptions opts = new ImageOrPrintOptions();

opts.OnePagePerSheet = true;

opts.ImageFormat = ImageFormat.Jpeg;


SheetRender render = new SheetRender(worksheet, opts);

render.ToImage(0, filePath + “.out.jpg”);


Output Image:

Hello,

We’ve tested again with Aspose.Cells version 8.0.2.0, and it seems the problem is fixed. Can you confirm ?

Thank you,
Mihai Andrei
Senior Software Engineer
IBM Romania

Hi,


Yes, I checked the status of the issue, it is marked as resolved/closed, so you may safely use our newer versions of Aspose.Cells for .NET. The issue got resolved a few months back but we could not notify you earlier as we missed that.

Thank you.