Good day!
I’ve got a problem with Aspose.Cells sheet.Hyperlinks collection (version: 8.7.1.0).
I need a sorter(!!) when I try to find valid hyperlink! Every day I process some xls-documents with bad hyperlinks info.
For example:
sheet.Hyperlinks.Add(1, 1, 10, 10, “test1”);
sheet.Hyperlinks.Add(2, 2, 10, 10, “test2”);
sheet.Hyperlinks.Add(3, 3, 1, 1, “test3”);
What is right way to get hyperlink for cell (2,2)? What is right hyperlink value for it?
And for cell (2,3) and (3,3)?
Next test:
sheet.Hyperlinks.Add(1, 1, 4, 4, “test1”);
sheet.Hyperlinks.Add(3, 3, 4, 4, “test2”);
What is right values for this cells: (3,3), (3,4), (4,3), (4,4)?
What should I do if the cell (3,3) is the part of merged range (“A1:E4”)!!!
P.P.S.
This VBA function always return valid result:
Function GetAddress(myRange As Range)
If myRange.Hyperlinks.Count > 0 Then
GetAddress = myRange.Hyperlinks(myRange.Hyperlinks.Count).Address
Else
GetAddress = “”
End If
End Function
If myRange.Hyperlinks.Count > 0 Then
GetAddress = myRange.Hyperlinks(myRange.Hyperlinks.Count).Address
Else
GetAddress = “”
End If
End Function
But I need a right way for Aspose.Cells.
Please, I need help!