Skip to main content
Solved

Write hyperlink to document with MSWordStyler


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

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

View original
Did this help you find an answer to your question?

3 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • 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
  • 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
  • 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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings