Unable to intercept Commands in Word

Discussion in 'Word Programming' started by M Fitzmaurice, Dec 21, 2011.

  1. Hi All

    I'm having trouble intercepting commands in Microsoft Word and would appreciate help. (The Checkin Checkout commands are for use with SharePoint)

    I put the following XML into either a VSTO or VBA addin:

    <?xml version="1.0" encoding="UTF-8"?>
    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
    <commands>
    <command idMso="FileNewDefault" onAction="FileNew_Click"/>
    <command idMso="FileCheckIn" onAction="FileCheckIn_Click"/>
    <command idMso="FileCheckOut" onAction="FileCheckOut_Click"/>
    <command idMso="FileCheckOutDiscard" onAction="FileCheckOutDiscard_Click"/>
    <command idMso="LeaveReader" onAction="LeaveReader_Click"/>
    </commands>
    </customUI>

    Some commands work:
    - FileNewDefault
    - FileCheckOut

    But the following do not work:
    - FileCheckIn
    - FileCheckOutDiscard
    - LeaveReader (I understand that this command should intercept pressing 'Edit Document')

    Why don't those commands work?
    Do they have different method signatures to the commands that work?
    Where is the documentation?
    Have Microsoft neglected to finish these methods?

    Any help would be greatly appreciated
    Matt
     
    M Fitzmaurice, Dec 21, 2011
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David D

    Template and Keyboard Commands

    David D, May 12, 2006, in forum: Word Programming
    Replies:
    5
    Views:
    120
    Pat Garard
    May 13, 2006
  2. sajin
    Replies:
    1
    Views:
    140
    Jonathan West
    Jul 12, 2006
  3. gaubahn via OfficeKB.com

    repeating commands

    gaubahn via OfficeKB.com, Aug 3, 2006, in forum: Word Programming
    Replies:
    3
    Views:
    121
    Cindy M.
    Aug 7, 2006
  4. Zoom

    Unable to exit from design mode

    Zoom, Mar 14, 2007, in forum: Word Programming
    Replies:
    0
    Views:
    152
  5. Brian Beck
    Replies:
    2
    Views:
    170
    Brian Beck
    May 11, 2007
  6. Supriya
    Replies:
    1
    Views:
    715
    Cindy M.
    Jun 9, 2007
  7. LabrGuy Bob R
    Replies:
    7
    Views:
    165
    kozaw
    Jun 13, 2007
  8. Sarah Peters
    Replies:
    1
    Views:
    168
    Peter Jamieson
    Sep 23, 2009
Loading...