4D v18

Exporting in .docx format

Home

 
4D v18
Exporting in .docx format

Exporting in .docx format    


 

 

4D Write Pro documents can be opened in word processing applications that support the .docx format, such as Microsoft Word.

Compatibility note: Support for 4D Write Pro documents exported in .docx format is only certified for Microsoft Word 2010 and newer. Older versions, particularly Microsoft Word 2007, may not be able to open the documents.

4D Write Pro objects offer two ways to export 4D Write Pro documents in .docx format:

For more information, please refer to the description of these commands.

While the majority of 4D Write Pro settings are preserved, some settings are known to be either unsupported or behave differently in Microsoft Word. These are:

SettingParagraphsSectionsImages
AnchoringIn Microsoft Word, anchored images are positioned relative to the top left origin of the page and first paragraph. This could result in images being displayed in different locations than desired due to text layout differences between 4D Write Pro and Microsoft Word.
Vertical alignNot supported by Microsoft Word (all items will be top-aligned)Not supported for inline images (all items will be baseline)

SettingParagraphsSectionsImages
Background clippingNot supported by Microsoft Word (background color fills entire paragraph, not including borders and margins)Not supported by Microsoft Word (background clipping will be equal to the padding box)
Background imageNot supported by Microsoft WordDifferent background pictures/colors not supported by Microsoft Word (converted to anchored images or shapes)Microsoft Word allows either a background color or a background image. If a background image is defined, the background color will be "transparent".
Background image repeatHorizontal or vertical tiles are converted to full tiles in Microsoft WordHorizontal or vertical tiles are converted to full tiles in Microsoft
Background originOrigin box is converted to the same value as background clipping box.Not supported by Microsoft.

Borders  

SettingParagraphsSectionsImages
Border colorDifferent border colors for each border line is not supported by Microsoft Word. The first defined 4D Write Pro image border line (in this order: top, right, bottom, left) will be used for all of an image's borders.
Border radius (rounded borders)Not supported by Microsoft Word
Border widthMicrosoft Word maximum is 12pt, borders exceeding this size will be reduced.Microsoft Word maximum is 12pt, borders exceeding this size will be reduced. 

SettingParagraphsSectionsImages
ExpressionsOnly simple 4D expressions such as "Current date" or "Current time", or 4D Write Pro reserved local variables ($wp_title, $wp_pageNumber, etc.) are converted to Microsoft Word fields. Other 4D expressions are computed and converted to text or images during the export process.

Lists  

SettingParagraphsSectionsImages
IndentConverted to 0 for list items (list item indent is converted to hanging indent in Microsoft Word)
Ordered list typeGreek, Armenian, and Georgian are converted to decimal and Hiragana is converted to Katakana in Microsoft Word.

SettingParagraphsSectionsImages
SVGNot supported by Microsoft Word (images in SVG format will be converted to PNG format)

Size  

SettingParagraphsSectionsImages
Minimum heightNot supported by Microsoft Word (height is handled automatically)
Width / Minimum widthNot supported by Microsoft Word (paragraph width is handled automatically)

Spacing  

SettingParagraphsSectionsImages
PaddingMicrosoft Word maximum is 31pt, padding exceeding this size will be reduced.Microsoft Word maximum is 31pt, padding exceeding this size will be reduced.

Tabs  

SettingParagraphsSectionsImages
Default tab stopNot supported by Microsoft Word (will be converted to absolute tab stops)
Tab leading charactersMicrosoft Word supports "dot" (....), "dash" (----), and "underscore" (____) leading characters, all others will be converted to "none".

Text  

SettingParagraphsSectionsImages
LinethroughLine color different from text color is not supported by Microsoft Word; only solid and double styles are supported
Style SheetsParagraph style sheets are converted to paragraph styles.
Text alignMicrosoft Word compresses spaces, so justified text layout may be reconfigured.Microsoft Word compresses spaces, so justified text layout may be reconfigured.
Text shadow4D Write Pro shadow will be converted to blur and offset, using the default color in Microsoft Word.
UnderlineSemi-transparent underlines will be converted to solid.

 
 



See also 

WP EXPORT DOCUMENT
WP EXPORT VARIABLE

 
PROPERTIES 

Product: 4D
Theme: Exporting in .docx format

 
HISTORY 

Created: 4D v17 R4

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v18)