KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Preserving hyperlinks in 4D Write document
PRODUCT: 4D Write | VERSION: 15.x | PLATFORM: Mac & Win
Published On: February 14, 2017

The use of wr cmd freeze references option in 4D write, for a text with a hyperlink, will make it unclickable. To avoid this issue, we propose selecting only the data references that interest the user; which will keep the hyperlinks clickable .



// Method Name: Preserving hyperlinks method

NBobject:=WR count(WRArea;4)

For($i;0;(NBobject-1))

  WR SELECT(WRArea;wr select expression;$i)

  WR EXECUTE COMMAND(WRArea,wr cmd freeze references)

End FOR


Keeping hyperlinks clickable when converting to PDF:

The PDF generation in 4d goes through a print driver, in this context the concept of hyperlinks does not exist,the only mean to create a PDF while preserving the hyperlink is to go through an app that converts the document instead of printing it .

As an example of this solution, User can save his 4D write as a word document, and use the native Mac/windows app (or any application capable of opening .doc files) to convert it to PDF .