New Word 2019 with Xojo API 2 Book

Version 3.0 (July 2021) of the book ‘I Wish I Knew How To… Program Word 2019 with Xojo API2 in Windows’ has been released with over 300 modifications to existing code which updates code from API1 to API2. This was created with Xojo 2021 r1.1.


This book is an accumulation of over 10 years of Xojo and Microsoft Word questions, examples, and solutions to various inquiries.

More details and purchasing of the book are available at the following links:

ISBN: 978-1-927924-31-0

All examples have been created with native code by using Xojo 2021 r1.1. There is an older book for API 1 and a few API 2 examples that remains available which covers Word 2016.

Here are some of the many categories of changes to version 3.0 of this book:

  • Added SpellCheck functionality in Example 17-1
  • Added saving a docx file in Example 2-16
  • Update code to Microsoft Word 2019
  • Update all code to API 2
  • Uses version Xojo 2021 r1.1
  • Updated all project IDE minimum versions
  • Update plugin installation instructions
  • Fixed numerous grammatical errors
  • Changed API MsgBox to API2 MessageDialog.Show
  • Added example code that contains parameters and return values
  • Removed unused variables from examples
  • ShowAnimation has been removed in Word 2019 (Example 3-10)
  • Updated API 1 Len with API2 String.Length
  • Updated API 1 Left with API2 String.Left
  • Partial Xojo fixing of watermark example, where it ‘mostly’ works (Example 12-1)
  • Updated API 1 Split to API 2 String.Split
  • Updated API 1 Ubound to API 2 LastIndex
  • Updated API 1 Append to API 2 Add
  • Updated API 1 ListCount to API 2 RowCount
  • Updated API 1 Cell to API 2 CellValueAt
  • Added Example 17-1: Live Spell Check Xojo Text
  • Added Example 8-2: Change text columns in a page
  • Added Example 8-3: Multiple orientation on multiple pages
  • Added Example 8-4: Text Columns and Multiple Orientation
Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.