Re: creating custom tool bar for office application
- From: "Bob Eaton" <pete_dembrowski@xxxxxxxxxxx>
- Date: Sun, 16 Jul 2006 08:20:25 +0530
You need to set up a new event handler for each document
Could you give a reference for how to set up an event handler (in VS.Net
2005 COM add-in) for when a document opens? I can't find any information on
this and it is especially a problem for Access: Access won't let you add
toobar buttons until a document is opened, but the IDTExtensibility
interface isn't called when a document is opened, but only at startup. If I
could detect no database opened at startup and add an event handler for
"open database", then I could add my menu items then, but I can't figure out
how to activate such an event handler...
Thanks,
Bob
"Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx> wrote in message
news:%23whrJG$jGHA.3496@xxxxxxxxxxxxxxxxxxxxxxx
You need to set up a new event handler for each document that opens and
keep a reference to that event handler somewhere that keeps it in scope so
it's not released, like a hashtable. You also should create a new and
unique Tag for each button you create, not only for each different button
but for each different instance of each button.
I'm not sure what you mean about the drop down values.
.
- Prev by Date: Re: com add-in loads in Power Point but does not load in Excel or
- Next by Date: Adding a custom task pane in office 2003
- Previous by thread: Re: com add-in loads in Power Point but does not load in Excel or
- Next by thread: Adding a custom task pane in office 2003
- Index(es):