Add-ons
  • Welcome
  • StackView
    • Version 2
      • How it works
      • How to use it
      • The Details
        • ScrollController
        • StackController
        • ViewController
      • Tips & Tricks
      • General Information
    • Version 3
      • How it works
      • How to use it
      • The Details
        • ScrollController
        • StackController
        • ViewController
      • Tips & Tricks
      • General Information
    • Changelogs
    • Purchase
  • FTC Word-Exporter
    • How to use it
    • General Information
  • CSTrueColors
    • Documentation
      • NSColorAddition
      • AppKitAddition
        • VisualEffectView
      • User32Addition
      • Template Images
      • The Demo Project
    • Changelog
  • Android
  • Open Source Projects
    • Android Design Extensions
  • Xojo Language Guide
    • The Basics
Powered by GitBook
On this page
  • Character Properties
  • StyleRun
  • Paragraph Properties
  • Document Properties

FTC Word-Exporter

Xojo Classes to export Formatted Text Control Documents to Microsoft Word

PreviousPurchaseNextHow to use it

Last updated 8 months ago

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:

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.

You need a valid license for the or to successfully compress the Word document!

MBS-Compression
Chilkat-Plugin
GitHub - atomiccity/FormattedTextControl: The Formatted Text Control for XojoGitHub
WordIterator.xojo_binary_codeDropbox
Demo-Project
Logo
Logo