Missing Shim project

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

Missing Shim project
 
Asad Chaudary




Posts: 53
Joined: 2005-01-25
Eugene,

I have a general question. How do I create a new menu option, say under the File menu? Basically, I want to add a "Save as Record..." menu option under the existing "Save As..." menu item. The click event of this menu option should do the same as my Toolbar command button click.

Is it something that I do using the ADX COM Add-In stuff, or do I do something else?

Many thanks,

Phil
Posted 26 Jan, 2005 08:40:43 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
Phil,

We need a couple of minutes to prepare a sample add-in for you.

But I need to know what language (VB.NET or C#?) and what host app you use.

P.S. Could you please change your record to show us your full name and your e-mail. As I can assume Asad Chaudary is your boss or your colleague. :-)
Posted 26 Jan, 2005 08:54:04 Top
Asad Chaudary




Posts: 53
Joined: 2005-01-25
Eugene,

Okey dokey, that would be very useful.

We are using VB.NET. We need to support all Office 2003 applications, but specifically the following;

Excel
Word
Outlook
PowerPoint
Access
Project
FrontPage
Visio
Publisher

Cheers,

p.s. Yeah, Asad works in purchasing but I'm (currently) the main developer/user of your software.
Posted 26 Jan, 2005 09:08:17 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
Thank you for your quick reply.

Should we prepare a sample add-in for all host apps or can we show this on one of the apps?
Posted 26 Jan, 2005 09:11:55 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
A hint. To edit your profile look at the bar above ("Profile")
Posted 26 Jan, 2005 09:12:48 Top
Asad Chaudary




Posts: 53
Joined: 2005-01-25
I suppose it depends on whether the menu has to be created it differently depending on the host app. If you could prepare a simple for three of the applications (Word, Excel and Outlook) then that would be good.

Profile has been updated. :-)

Cheers,

Phil
Posted 26 Jan, 2005 09:23:11 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
Phil,

You can download the sample add-in here

The add-in adds a button to the File menu in Word, Excel and Outlook.
Posted 26 Jan, 2005 11:23:28 Top
Eugene Starostin


ADX Team
Add-in Express team


Posts: 430
Joined: 2004-04-05
Some comments on the sample.

I used our Built-in Controls Scanner Built-in Controls Scanner to get the IDs and the names of the menu bar and the File pop-up. Also I used names of the menu bar and the position of the SaveAs button directly.

You can face some difficulties with this if your add-in have to work not only on English Office. In this case I recommend scanning all command bars in the current host app and determining which of them is a menu bar. This code is a subject of the AddInInitialize event.
Posted 26 Jan, 2005 11:53:35 Top
Philip Street




Posts: 53
Joined: 2005-01-25
Eugene,

Excellent, thanks for that. The only curious thing in Outlook is that the menu completely disappears when I select a folder type other then Mail...

From looking at the code it looks like you are using the AdxCommandBarPopup control to create the menu option. Is that right?

I can't see how you specify that the menu item appears after the "Save As..." option. Where is that controlled?

Many thanks,

Phil
Posted 26 Jan, 2005 12:09:51 Top
Philip Street




Posts: 53
Joined: 2005-01-25
Doh...you're too quick for me! Thanks for the comments, that clears things up a bit...

Phil
Posted 26 Jan, 2005 12:11:14 Top