4D Blog

Home Product From docx format to 4D Write Pro!

From docx format to 4D Write Pro!

April 26, 2021

Product

A couple of months ago, we were happy to announce the ability to export 4D Write Pro documents to Microsoft Word.docx format. Now we’re thrilled to announce that the reverse operation is also possible!

Starting with 4D v19, you can import .docx documents into 4D Write Pro. Let’s have a closer look.

HDI: From DOCX to 4D Write Pro 

New constant

This feature has been requested by many 4D Write Pro users and we listened! Introducing a new constant to be used with the WP Import document command: wk docx. Just so you know, behind the scenes, this task was huge! This new import ability will open new horizons for your applications.

The most requested user story was the ability to import .docx documents that were stored on multiple discs or servers or that are still being received from your customers … so that you can process their content with 4D Write Pro.

***
“Our need is to import 95% Word letters (with logo pictures) and 5% real estate exposés with a lot of pictures.” (A. D.)

“Import Word letters from other systems including logos, headers, footers.” (P. C. S.)

“4D is a database, so it’s very important to be able to import a Word document easily and extract its… data!
We can see Word documents as formatted data.” (B. N.)

“To accomplish a transition to Write Pro we would need to be able to import hundreds (250+) Word Templates.
This requires analyzing the Merged Fields.”
(K. B.)
***

Good news! Once converted, these documents can be saved, modified, and then archived in the database.
They can also be indexed (see this blog post for more info), which makes future searches much more convenient than using the original .docx documents!

Imported parts

Headers and footers will be imported as well as the document body. What else? The bookmarks, the style sheets, the page expressions (number and count), the date and time expressions, as well as the margins, padding, borders, etc. Even merged fields will be imported, either as values or as tags. 

Of course, there’s no such thing as a pixel-perfect .docx converter, so don’t expect 100% of your converted documents to look identical to their MS Word counterparts.

Please note that 4D Write Pro will import most of the content of the MS Word document, except for what is not supported in 4D Write Pro (as detailed in the documentation chapter: Importing and exporting in .docx format).

Import log

Also note that during the import process, an import log is generated and integrated inside the 4D Write Pro document itself.
You’ll be able to consult it to see if any potential differences between the original and the converted document are important, or if they are minor and only concern the appearance (which is generally the case).

 

Import OPTIONS

As for the export method (i.e., PDF export – see) you also have many options for your .docx files such as skipping the headers and footers, including the anchored pictures or not, etc. All of these are described in the documentation.

You can download the HDI above to test this new feature with your own documents or with the ones you may have already exported using 4D Write Pro!

To conclude …

We wish you a lot of fun and pleasure using this feature! Your feedback is always appreciated.

Discuss

Tags 4D Write Pro, Import, v19, Word processor

Latest related posts

  • January 22, 2026

    Transform Static Documents into Actionable Knowledge with AIKit

  • January 22, 2026

    Deploy Fluent UI effortlessly in your 4D applications

  • January 21, 2026

    Searching Across Host Projects and Components in 4D

Roland Lannuzel
Roland Lannuzel
• Product Owner & 4D Expert • After studying electronics, Roland went into industrial IT as a developer and consultant, building solutions for customers with a variety of databases and technologies. In the late 80’s he fell in love with 4D and has used it in writing business applications that include accounting, billing and email systems.Eventually joining the company in 1997, Roland’s valuable contributions include designing specifications, testing tools, demos as well as training and speaking to the 4D community at many conferences. He continues to actively shape the future of 4D by defining new features and database development tools.
  • 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-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 21 R2 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail 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-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 21 R2 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail 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