4D Blog

Home Tips How to create a newsletter in 4D Write Pro

How to create a newsletter in 4D Write Pro

March 30, 2018

Tips

4D Write Pro is a powerful text engine, entirely programmable, and fully integrated into 4D and its database. It has an unlimited number of uses. Beyond generating complex documents by programming, or creating letters and quotes as in classic word processors, 4D Write Pro allows you to easily publish your documents on the web.

We’ve prepared an example to show you how you can easily create a beautiful newsletter that can be exported to HTML!

Newsletter example 

Publish YOUR DOCUMENTS ON THE WEB

The process is pretty simple. First, create a 4D Write Pro area and set the view mode to “embedded” with the “Show HTML WYSIWYG” option enabled in the Property List.

Note that some functionalities are not supported with the HTML export, simply because there is no HTML equivalent! (headers, tabs, etc.). This option will make sure that what you see in 4D Write Pro will indeed be what you’ll get in a web browser.

When you’re satisfied with the final outcome, you can export your document with the WP EXPORT DOCUMENT command. It’s simply that straightforward! With a single line of code, your document is displayed in the browser:

// Export doc to HTML format
$path:=Get 4D folder(Database folder)+"WriteProExport.html"
WP EXPORT DOCUMENT(WParea;$path;wk web page complete;wk normal)
// Display HTML doc in Firefox
OPEN URL($path;"firefox")

Many things can be achieved using 4D Write Pro, the different commands make creating complex (yet visually appealing) documents a breeze!

Discuss

Tags 4D Write Pro, v16 R6, v17, 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
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • 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 20 R10 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula 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 v20 vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application CI/CD Class Client/Server Code editor Collections Formula 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 v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 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