I created a SmartArt shape, and changed its name to “ThisShape”. (When I click on the shape in excel, the “Named Range” box – for lack of a better term – shows the name “ThisShape”.) So is that the name of the shape or not?
Aspose.Cells gives me a shape name of “AutoShape 1”. In fact, I don’t even see where there is any property on the shape named “ThisShape”.
If the name really is “AutoShape 1” where can a user change that? I thought I had changed it to “ThisShape”, but something isn’t working like that.
I have tested your case a bit with a word art shape, I loaded the file with Aspose.Cells v7.0.3.3 (please try it), and get the Shape.Name, it works fine to get the custom name that I assigned manually in MS Excel. So, kindly give us your sample code with template file to show the issue, we will log the issue if we found it.
I can find the issue as you have mentioned by using your template file and code like: Workbook workbook = new Workbook(“e:\test2\BookArrow.xlsx”); //Get the first default sheet Worksheet sheet = workbook.Worksheets[0]; //Add Watermark Aspose.Cells.Drawing.Shape wordart = sheet.Shapes[0];
MessageBox.Show(wordart.Name); //Invalid / Default name
Expected: Name is “ThisIsAShape” Actual: Name is "AutoShape 1"
I have logged a ticket with an id: CELLSNET-40153. We will look into it soon.