none
MS Word Add Alignment Tab in Footer RRS feed

  • Question

  • In word, a user can edit the footer and enter text then an alignment tab and then more text.  But I can't see how to do that programmatically in VSTO (VB).  For example, I need to have EVEN and ODD footers like this:

    ODD FOOTER DESIGN

    Copyright 2020                                                                                                 DocNum

    EVEN FOOTER DESIGN

    DocNum                                                                                                           Copyright 2020

    In addition, the pages change orientation occasionally (portrait to landscape), so I want to enter the left aligned text, the alignment tab to the right and then the right aligned text.  I cannot find an example online that does this.  The Word MACRO recorder (my cheat method) doesn't record the addition of an alignment tab, although there is a method on the Range Object in VSTO.

    Selection.Range.InsertAlignmenttab(1, 0)

    Any ideas?

    Wednesday, March 18, 2020 7:12 PM