Skip to content
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

Hyperlink Screentip being set, but not showing in Powerpoint #1022

Open
paulbrazell opened this issue Oct 23, 2024 · 1 comment
Open

Hyperlink Screentip being set, but not showing in Powerpoint #1022

paulbrazell opened this issue Oct 23, 2024 · 1 comment

Comments

@paulbrazell
Copy link

paulbrazell commented Oct 23, 2024

I have a function that is setting the Hyperlink's screen_tip property:

cell_link = cell.text_frame.paragraphs[0].add_run()
cell_link.text = display_text
hlink = cell_link.hyperlink
hlink.address = url
if screen_tip:
    print(f"Has a screen_tip: {screen_tip}")
    hlink.screen_tip = screen_tip
    print(hlink.screen_tip)

This outputs the correct information when I print the input variable and the hlink.screen_tip, but when I view this in Powerpoint the ScreenTip is not present.

Tested on versions 0.6.22 and 1.0.2. Validating with Powerpoint Version 16.86 on Mac.

Maybe i'm doing something wrong, but seems to be correct per the documentation.

@paulbrazell
Copy link
Author

After reading "The link XML is not written until .address is specified.", edited the code to the following and i still see the same behavior

cell_link = cell.text_frame.paragraphs[0].add_run()
cell_link.text = display_text
hlink = cell_link.hyperlink
if screen_tip:
    print(f"Has a screen_tip: {screen_tip}")
    hlink.screen_tip = screen_tip
    print(hlink.screen_tip)
hlink.address = url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant