Unable to intercept Commands in Word

M

M Fitzmaurice

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
 

Ask a Question

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. After that, you can post your question and our members will help you out.

Ask a Question

Top