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

Free Support Forum - aspose.com

Links in shapes are not detected

Hi,

We have a problem with the links present in shapes, they are not detected by Aspose.

The scenario provided was produced in version Aspose.Cells 21.7.0

Can you look ?

Thank you Best regards

elements.zip (447.9 KB)

@ISIWARE,
We have observed this issue and logged in database for further investigation. You will be notified here once any update is ready for sharing.

This issue is logged as:
CELLSNET-48383 - Hyperlink in shape is not detected

@ISIWARE,

This is not an issue with the APIs. Please note, Worksheet.Hyperlinks does not contain the hyperlinks of the shapes. Please see the following sample code for your requirements:
e.g.
Sample code:

    for (int i = 0; i < worksheet.Hyperlinks.Count; i++) {
    Hyperlink hl = worksheet.Hyperlinks[i];
    hl.Address = "http://www.aspose.com";
    hl.TextToDisplay += "_Modified";
    }            

     foreach(Shape shape in worksheet.Shapes)
    { 
               Hyperlink hl= shape.Hyperlink;
                if(hl != null)
                hl.Address = "http://www.aspose.com";

               //hl.TextToDisplay += "_Modified";
               shape.Text = shape.Text + "_Modified";// Hyperlink.TextToDisplay does not work in shape.                

}

}