Intercepting Menu Item clicks in office products.

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

Intercepting Menu Item clicks in office products.
 
Nilesh Padbidri




Posts: 11
Joined: 2006-12-08
This is a 2 part question :

1. I want to capture the "File -> Save As" menu click and based on some
processing decide whether the actual "Save As" dialog should be
displayed or not.

2. The "Save As" command should be intercepted :
A.) In Word / Excel
B.) Irrespective of the language of installation of Word / Excel.

Any leads or examples would be greatly helpful.

Thanks,
- Nilesh Padbidri.
Posted 08 Dec, 2006 02:58:40 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Nilesh.

Please download the following example:
http://www.add-in-express.com/projects/excelwordsaveasexample.zip

You can use the DisableStandardAction property of the ADXBuiltInControl component to disable the standard dialog of the host application.

P.S. Note that we take up your forum requests in the order we receive them.
Besides, it may take us some time to investigate your issue. Please be sure we will let you know as soon as the best possible solution is found.
Posted 08 Dec, 2006 11:58:39 Top
Nilesh Padbidri




Posts: 11
Joined: 2006-12-08
Sergey, thanks for the sample. The sample has reference to a hardcoded id, value of which is "748". My inference is "748", is ID of "Save As".

Going forward I would need to intercept more menu items. To that end do we have a published list of IDs. This would be useful in trapping the other menu items. For ex: I want to intercept all the menu items under the "Send To" submenu.

Thanks,
- Nilesh Padbidri.
Posted 08 Dec, 2006 14:53:18 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Nilesh.

Please use our 'Built-In Controls Scanner' tool to get the list of all Office IDs:
http://www.add-in-express.com/downloads/controls-scanner.php
Posted 11 Dec, 2006 18:08:18 Top
Nilesh Padbidri




Posts: 11
Joined: 2006-12-08
Sergey thanks. This tool is incredible !!!
Posted 12 Dec, 2006 09:28:19 Top