Aspose.Cells 7.0 incorrectly converts shapes

Hi,

I’ve updated to latest components (Aspose.Cells 7.0.1.0) and faced with issue again (it was present also in 6 and 5 versions) - some shapes converted incorrectly.
Invalid format conversion (*.xlsx -> *.xls):

  1. The type of shape has been changed;
  2. The improperly converted shape has not been drawn (empty image).
ImageOrPrintOptions ipOpt = new ImageOrPrintOptions()
{
IsCellAutoFit = false, OnePagePerSheet = true
};
shape.ToImage(fName, ipOpt);

I attached zip with sample documents and shapes.

Thank you,
Alex Shloma

Hi Alex,


I can find the issue using your template XLS file with the following sample code to render to simple image file(s):

Sample code:

Workbook book = new Workbook(“e:\test2\shapesOleSize1.xlsx.xls”);

int filenumber = 0;
foreach (Aspose.Cells.Worksheet sheet in book.Worksheets)
{
foreach (Aspose.Cells.Drawing.Shape shape in sheet.Shapes)
{
MessageBox.Show(shape.GetType().ToString());
Stream stream = new FileStream(“e:\test2\simage” + filenumber.ToString() + “.png”, FileMode.Create);
shape.ToImage(stream, ImageFormat.Png);
filenumber++;

}
}

The first image is not fine.

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

Thank you.

Hi,

Please also note, that in xlsx shape has 10 vertices, when converted to xls - only 4.

Thank you,
Alex Shloma

Hi,


Yes, I also noticed this issue as well. We will also figure it out soon.

Thank you.

Hi,

Thanks for using Aspose.Cells.

We have closed this thread as Won’t Fix, so this issue could not be fixed. Let us know if you encounter any other issue, we will be glad to look into it and help you further.