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

Free Support Forum - aspose.com

Wrong shapes export to image

Hi! When rendering a range containing 2 shapes to an image, the shapes are rendered with some mistakes. Please, check the attached console project and screenshots!

Thank you.

I can find the issue as you have mentioned by converting your template file’s sheet (containing some auto-shapes) to image file.

When rendering a range containing 2 shapes to an image, the shapes are rendered with some mistakes.

Sample code:

var workbook = new Workbook(@“E:\test2\TextBoxInExcel_excelshapes\TextBoxInExcel\bin\Debug\shapes.xls”);

var imageOptions = new ImageOrPrintOptions
Quality = 100,
VerticalResolution = 200,
HorizontalResolution = 200,
PrintingPage = PrintingPageType.IgnoreBlank,
ImageFormat = ImageFormat.Png,
OnePagePerSheet = true

var worksheet = workbook.Worksheets[0];

worksheet.PageSetup.PrintArea = string.Format(“a2:e10”);
worksheet.PageSetup.TopMargin = 0;
worksheet.PageSetup.LeftMargin = 0;
worksheet.PageSetup.RightMargin = 0;
worksheet.PageSetup.BottomMargin = 0;

var sheetRender = new SheetRender(worksheet, imageOptions);

sheetRender.ToImage(0, @“E:\test2\TextBoxInExcel_excelshapes\TextBoxInExcel\bin\Debug\output.png”);

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

Thank you.


Any updates on this quite OLD issue ?

We’ve tested again with Aspose.Cells version, the behavior is the same.

Thank you in advance,
Mihai Andrei
Senior Software Engineer
IBM Romania


I am afraid, the issue is still not resolved. I have logged your concerns against your issue id “CELLSNET-40931” into our database. I have also asked the relevant developer to provide update on it or eta for it.

Once we have any update on it, we will let you know here.

Sorry for any inconvenience caused!

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

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