Skip to main content
Solved

Write hyperlink to document with MSWordStyler

  • August 31, 2022
  • 3 replies
  • 138 views

egge
Contributor
Forum|alt.badge.img+14
  • Contributor
  • 102 replies

Hi all,

Just a quick question:

What I try to do today is to write a hyperlink from my workspace to a word document. I am compiling a Word document with a bunch of MSWordStylers and one of the paragraphs contains a hyperlink...

 

I have been looking around, and it looks like it is currently not possible to insert a hyperlink to a word document using the MSWordStyler. Is that still true, or did I miss something? And: would there be an alternative route to accomplish this?

 

Any insights will be highly appreciated.

 

Cheers,

 

Egge-Jan

Best answer by egge

Yes! I managed to create an example myself. Please have a look at the template in this post:

write-hyperlinks-to-word-document-with-pyhon-docx-in-pythoncaller

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • August 31, 2022

It's not showing as released against this idea, so looks like it's still not possible

 

https://community.safe.com/s/bridea/a0r4Q00000Hbrg5QAB/create-hyperlinks-with-the-mswordstyler

 

You could probably use the python docx module to insert, not sure about other methods


egge
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 102 replies
  • August 31, 2022

OK - thanks. At least I voted for the idea.

Would you be aware of an example with this python docx module being available?


egge
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 102 replies
  • Best Answer
  • November 23, 2022

Yes! I managed to create an example myself. Please have a look at the template in this post:

write-hyperlinks-to-word-document-with-pyhon-docx-in-pythoncaller