Solved

Write hyperlink to document with MSWordStyler

  • 31 August 2022
  • 3 replies
  • 26 views

Badge +11

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

icon

Best answer by egge 23 November 2022, 11:38

View original

3 replies

Badge +10

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

Badge +11

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

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

Badge +11

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

Reply