4D Blog

Home Tips Breathe life into your 4D Write Pro documents with pictures

Breathe life into your 4D Write Pro documents with pictures

June 6, 2018

Tips

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!

So far there are three types of pictures that can be used in 4D Write Pro, depending on your needs:

background pictures

Background pictures can be added either to your 4D Write Pro documents or to the document’s elements such as tables, paragraphs, sections, just to name a few. They can be clipped to the border or the paper box by using the wk background image or wk background image url attributes with the WP SET ATTRIBUTES command. Background pictures are a good fit when it comes to needing paper-folding lines or watermarks. Make sure the image is discrete enough so it doesn’t take the focus away from the text and other images in the document. This will ensure that everything works well with the background picture!

example

Below is a code snippet of setting a background image covering the entire printable area:

WP SET ATTRIBUTES(wpArea;wk background image;$picture)
WP SET ATTRIBUTES(wpArea;wk background clip;wk paper box)
WP SET ATTRIBUTES(wpArea;wk background origin;wk paper box)

Inline pictures

Inline pictures are inserted as a character in a valid 4D Write Pro range object with the WP INSERT PICTURE command and the specified insertion mode (before, after or replace text). The picture could be loaded either from disk or from a picture field in the database. Some great examples of using inline pictures are inserting your company logo into your invoices or adding product images for each of your products!

example

WP INSERT PICTURE($wpRange;document;wk replace)

anchored pictures

With anchored pictures, full control is given over picture insertion at a specific position in a document, behind or in front of text, as well as whether the picture is anchored to the page or to specific parts of the document (i.e., header, footer, sections). Use the WP Add picture command to add a picture at a specific position, and then define its exact position using either the WP SET ATTRIBUTES command or the appropriate standard action!

example

ARRAY TEXT(arrPath;0)
C_OBJECT($obImage)

$path:=Select document(Get 4D folder(Current resources folder);"";\
"Select an image";Use sheet window+Package open;arrPath)

If (OK=1)
  $obImage:=WP Add picture(wpArea;arrPath{1})
End if

 

See the different types in action

Checkout how these different types of pictures can work together to create beautifully designed documents!

HDI: making use of different types of pictures to create a resume

Discuss

Tags 4D Write Pro, Pictures, Word processor

Latest related posts

  • September 15, 2025

    Find the right spot in your 4D Write Pro document with AI

  • September 2, 2025

    Intelligent 4D Write Pro document analysis with AI

  • August 25, 2025

    ORDA – Constructor and touched event – Detailed behaviour through a network

Avatar
Intissar Elmezroui
- Product Marketing Manager – Intissar joined 4D in 2017 as a Product Marketing Manager. She works closely with the product, marketing, engineering, and technical support teams to highlight the “why,” “how,” and “what” of new features and updates to various audiences. This close collaboration enables her to craft messaging frameworks and create in-depth content and code samples for the 4D blog and website. After earning a degree in Computer Engineering from VINCI University, Intissar worked at several startups as a software engineer. Her hands-on experience includes software specification, design, and development, user training and support, as well as team management.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • Release infos
  • 4D View Pro
  • 4D Write Pro
  • Email, Microsoft 365, Gmail
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • 4D Qodly Pro
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Google Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 21 21 R2 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula Google Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience vscode Web Word processor
Subscribe to 4D Newsletter

© 2026 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy