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

  • April 28, 2025

    Tips & Tricks for your 4D Apps – April 2025 Edition

  • April 9, 2025

    Restrict data according to privileges or information saved in session storage

  • April 7, 2025

    Designing an Interactive and Dynamic Menu Bar in Qodly application

Avatar
Intissar Elmezroui
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • 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-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio 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