-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
is it possible to check if cell has hyperlink? #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for your issue. I have added a function |
thanks! will check later and write feedback |
Hmm, I'm getting nil here :( func (f *File) GetCellHyperLink(sheet, axis string) (bool, string) {
var link bool
var target string
xlsx := f.workSheetReader(sheet)
axis = f.mergeCellsParser(xlsx, axis)
if xlsx.Hyperlinks == nil || axis == "" {
log.Println("empty hyper", xlsx.Hyperlinks, axis)
return link, target
}
.... Document has hyperlinks that must be "fixed" - i.e. to external non-existing file, I can see them at Excel, but I can't get it via library :( Any ideas? P.S.: I need to check my file and write at log, that there some external links. |
The function |
ok, "external" can point to file also, I mean at Excel I see next link:
this file doesn't exist (link is broken) and I'm trying to log such kind of broken links, but I can't get hyperlink for this cell - xlsx.Hyperlinks is nil :( |
Please provide file attachments If you can. |
Uh oh!
There was an error while loading. Please reload this page.
Can't get a way to check if cell has any hyperlink
The text was updated successfully, but these errors were encountered: