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 to see if their FTIteratorBase is already compatible with the class. I developed the class for FTC versions >= 3.

You can download the latest version of the Formatted Text Control 3.2.1 here:

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

StyleRun

Paragraph Properties

Document Properties

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.

Last updated