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(WPDoc; wk first page) $images_c:=WP Get elements($header_o; wk 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(WPDoc; wk first page) $images_c:=WP Get elements($header_o; wk type image) |