FTC Word-Exporter

Xojo Classes to export Formatted Text Control Documents to Microsoft Word

Current Version: 1.0.0 (08. May 2018)

The class is a subclass of FTIteratorBase. This is available in all versions of FTC greater than or equal to version 3.0. Users of older FTC versions should use the demo class with version 2.4.1 (which is still available on the BKeeney Software homepage) to see if their FTIteratorBase is already compatible with the class. I developed the class for FTC versions >= 3.

You need a valid license for the MBS-Compression or Chilkat-Plugin to successfully compress the Word document!

It is also possible to write your own export method if you use TTsZipPackage, Einhugur plugins etc.

This demo runs only in debug mode and only with MBS Plugin. Simply drag and drop the WordIterator class into the Xojo Navigator and make sure that you have also imported the FTC classes so that the FTIteratorBase class is found. You will also find the call to save the FTC as a Microsoft Word document in the overview.

The class creates valid Microsoft Word documents (.docx) and was tested under macOS, Windows and Linux and exports all important formatting properties of the FTC:

Character Properties

Microsoft Word

Apple Pages

Libre Office

BackgroundColor

Bold

Italic

Strikethrough

Superscript

Subscript

TextColor

TextFont

TextSize

Underline

StyleRun

Microsoft Word

Apple Pages

Libre Office

ColorOpacity

Hyperlink

Picture

Shadow

Paragraph Properties

Microsoft Word

Apple Pages

Libre Office

Alignment

(left, center, right)

BackgroundColor

(only local)

TabStops

Indentation

FirstIndent

LeftMargin

RightMargin

Spacing

AfterSpace

BeforeSpace

LineSpacing

Document Properties

Microsoft Word

Apple Pages

Libre Office

BackgroundColor

DefaultHyperlinkColor

DefaultHyperlinkColorVisited

DefaultTabStop

Margins

(Top, Left, Bottom, Right)

Size

(Width, Height)

Zoom

If you use a Page Background color <> white you should define a default Paragraph Style via FTC.DefaultParagraphStyle-Event. Otherwise all Paragraphs without ParagraphStyle have a white background color. But normally, you shouldn’t use a Page Background Color.