Word context menu

Add-in Express™ Support Service
That's what is more important than anything else

Word context menu
Adding an item to Word context menu problem 
John Taylor

Posts: 10
Joined: 2012-08-20
I have a functioning add in that displays a TForm after the user clicks the button no the 'Add-In's ribbon tab. I now want to add a context menu item in Word to allow the same functionality from the context menu. I added a TadxContextMenu1 component to the AddInModule with the following property settings:

CommandBarName = 'Text'
SupportApp = ohaWord
Temporary = true ( I also tried false here)

I added a TadxcommandBarbutton to this and set the onclick hander to create and show the form, same code as in my button click event on the 'addins' ribbon tab. Everything works BUT...

I get this exception in the Delphi XE2 debugger
Project WINWORD.EXE raised exception class EOleException with message 'OLE error 800A01A8'.

This does not happen using word and not running in debugger in Delphi. Does this indicate a problem with my code or should I just ignore the exception in the debugger ?

Posted 22 Feb, 2013 08:12:17 Top
Andrei Smolin

Add-in Express team

Posts: 16466
Joined: 2006-05-11
Hello John,

Please make sure that you have XE2 Update 4 Hotfix 1 installed.

Temporary should be false. Note that in Word 2010 and above, it would be more correct to use TadxRibbonContextMenu.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 22 Feb, 2013 08:20:51 Top