Flash news: 4D Write Pro anchored images now support 4D Expressions!
Since 4D v16 R6, it’s been possible to add anchored images to 4D Write Pro documents. Once inserted, these images were static, either defined with a picture variable (or field), or by a picture path. Today, you have more flexibility: a valid 4D expression can also be associated to an anchored picture!
Unless you’re Stephen King and planning to write the next best seller, you may want to avoid long block of texts. And you can do this by using illustrations and images in your documents! Luckily, working with pictures in 4D Write Pro is evolving with every release, and these graphic-related features allow you to breathe life into your drab black and white text documents. In this blog post, we’ll explain the different types of pictures in 4D Write Pro, their use, and how to take advantage of them to create visually compelling documents!
Pictures speak louder than words, or so they say. In fact, according to researchers the brain processes images 60,000 times faster than words. 4D Write Pro is constantly evolving, version after version, to support more and more picture-related features. After in-line pictures and background pictures, 4D v16 R6 gives you the full control over picture insertion at a specific position in a document, in front of or behind text, as well as anchored to the page or specific parts of the document (i.e., header, footer, sections).
This blog post explores a 4D Write Pro-related functionality which will help you with the creation of complex documents, programmatically. Documents that can be either printed or sent by email.
An expression can now be a Picture! Handling pictures in your 4D Write Pro documents is becoming easier, offering vast possibilities. From now on, any expression returning a picture can be inserted. The most obvious cases are fields and variables, but it goes also for 4D functions and, last but not least, your own methods!
There are common user stories where there is a need to have a background image fill the entire printable area, such as paper-folding lines or a watermark. It’s also sometimes required by a company’s graphic charter.
Thanks to a newly added style for background images, it is now possible to create background pictures filling the full page in 4D Write Pro! You can control this attribute, by either the 4D language or standard actions, or even by using the 4D Write Pro widget.
From 4D v16 R4, we have added the support of pictures in object attributes. For example, if you use an object to exchange settings or data between methods, forms or processes, now, you can also pass an icon or a picture in this object. You don’t need anymore to temporarily save the picture on disk.
This new type can be used like any other object attribute type: you can use, get and set pictures in objects. You can also use the controls of the picture theme.
QuickDraw/QuickTime pictures (PICT format) are deprecated since 4D v11 and must be replaced by modern picture formats (such as PNG or JPEG). New 64-bit versions of 4D no longer support PICT images. So the challenge is to find them in your old applications.
Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!