KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Get images from Write Pro header
PRODUCT: 4D Write Pro | VERSION: 19 | PLATFORM: Mac & Win
Published On: October 12, 2021

Images from a 4D Write Pro header may be accessed by using the commands WP Get header and WP Get elements. For example:

$header_o:=WP Get header(WPDocwk first page)
$images_c:=WP Get elements($header_owk type image)

This can be useful, for instance, when the size of logos in a Write Pro document must be changed dynamically.

However, if the image is a picture variable, the variable must be computed beforehand using WP COMPUTE FORMULAS, like this:

WP COMPUTE FORMULAS(WPDoc)
$header_o:=WP Get header(WPDocwk first page)
$images_c:=WP Get elements($header_owk type image)