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

Free Support Forum - aspose.com

Convert XLS to Image - problem with AUTOSHAPE

Hi.

Aspose Cells 7.0.3.0 .Net couldn't render four AUTOSHAPEs.

Please test the attachment files.

test01.xls
not appeared.
test02.xls
vertical line does not appeared.
test03.xls
vertical line does not appeared.
Wrong direction of the arrow.
test04.xls
not appeared.
Hi,

I can find the issue using your template files to convert to image files. Only image for the first "test01.xls" file is fine, the other cases are not fine to product image files.

Sample code:
Workbook wb = new Workbook("e:\\test2\\test02.xls");
Worksheet wsChart = wb.Worksheets[0];

ImageOrPrintOptions imgOptions = new ImageOrPrintOptions();
imgOptions.ImageFormat = ImageFormat.Tiff;
imgOptions.HorizontalResolution = 300;
imgOptions.VerticalResolution = 300;

Aspose.Cells.Rendering.SheetRender sr = new Aspose.Cells.Rendering.SheetRender(wsChart, imgOptions);
System.Drawing.Bitmap img = sr.ToImage(0);
img.Save("e:\\test2\\test_" + DateTime.Now.ToString("HHmm") + ".tiff", ImageFormat.Tiff);

I am using v7.0.3.6.

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

Thank you.