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

Free Support Forum - aspose.com

Excel To Image: Legend key of pie chart have the wrong color

Hi Aspose Team,

When I convert an Excel file to an image, the legend key of pie charts have the wrong color. Please find attached the sample (program.cs), the result in Excel (result.xls) and the result in image (result.jpg).



I have tried to convert the worksheet/chart to image, it has the wrong color. You are right.

Sample code:
Workbook workbook = new Workbook(“e:\test2\toimg\result.xls”);
Worksheet sheet = workbook.Worksheets[0];
ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();

//Specify the image format
imgOptions.HorizontalResolution = 300;
imgOptions.VerticalResolution = 300;
imgOptions.ImageFormat = System.Drawing.Imaging.ImageFormat.Jpeg;

imgOptions.Quality = 100;
//Render the sheet with respect to specified image/print options
SheetRender sr = new SheetRender(sheet, imgOptions);

//Render the image for the sheet
sr.ToImage(0, “e:\test2\toimg\result.jpg”);

I have logged a ticket with an issue id: CELLSNET-40151. We will look into it soon.

Thank you.


We have solved the legend key problem in data labels. Please download: Aspose.Cells for .NET (Latest Version).

The issues you have found earlier (filed as CELLSNET-40151) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.