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?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. David D

    Template and Keyboard Commands

    David D, May 12, 2006, in forum: Word Programming
    Replies:
    5
    Views:
    149
    Pat Garard
    May 13, 2006
  2. sajin
    Replies:
    1
    Views:
    176
    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:
    144
    Cindy M.
    Aug 7, 2006
  4. Zoom

    Unable to exit from design mode

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