What is load order of addin in office components

J

Jay Chadderwala

Hi all

If office components ( word, excel, powerpoint....) has more than two
addins are installed . Then what will be order of loading of those
addin.

for example i have one addin which sets visible property of some menu
item to false. And another addin which sets visible property of some
of those item to true.... So How can i make load order of addin to
fixed?
or other way how can i disable other addin to load when my addin is
loaded.? Is it possible?

I am using VBA,VC6, and want to check this on almost all version of
office...


Another thing that i want to ask

I am displaying office document in office from my vc app thru DoVerb()

pPersistObj->Load(m_lpStorage);
hr = pOfficeDoc->DoVerb(OLEIVERB_SHOW ,NULL,NULL,0,0,&rect);

Now i want an event from excel, powerpoint when user close the
excel/ppt
How can i capture that?

I am getting this iin word by writing eventsink class . and handling
Quit()

How can i do same for excel/powerpoint?

for word i am capturing event for folling IID
static const GUID IID_IWordEventSink =
{0x000209f7,0x000,0x0000,{0xc0,0x00,0x0,0x00,0x00,0x00,0x00,0x46}};

which iid i should use in case of excel/ppt?







Thanks in advance.

Jay
 
F

Fredrik Wahlgren

Jay Chadderwala said:
Hi all

If office components ( word, excel, powerpoint....) has more than two
addins are installed . Then what will be order of loading of those
addin.

for example i have one addin which sets visible property of some menu
item to false. And another addin which sets visible property of some
of those item to true.... So How can i make load order of addin to
fixed?
or other way how can i disable other addin to load when my addin is
loaded.? Is it possible?

I am using VBA,VC6, and want to check this on almost all version of
office...


Another thing that i want to ask

I am displaying office document in office from my vc app thru DoVerb()

pPersistObj->Load(m_lpStorage);
hr = pOfficeDoc->DoVerb(OLEIVERB_SHOW ,NULL,NULL,0,0,&rect);

Now i want an event from excel, powerpoint when user close the
excel/ppt
How can i capture that?

I am getting this iin word by writing eventsink class . and handling
Quit()

How can i do same for excel/powerpoint?

for word i am capturing event for folling IID
static const GUID IID_IWordEventSink =
{0x000209f7,0x000,0x0000,{0xc0,0x00,0x0,0x00,0x00,0x00,0x00,0x46}};

which iid i should use in case of excel/ppt?

Thanks in advance.

Jay

Check the order as they appear in the registry.

/ Fredrik
 
P

Peter

Jay Chadderwala said:
Hi all

If office components ( word, excel, powerpoint....) has more than two
addins are installed . Then what will be order of loading of those
addin.

Addins can be either template files in Word's Startup Folder or dlls. So far as the templates are concerned, I've heard that they load in reverse-alphabetical order, but I can't say that's for sure the way it is. For dlls, Fredrik's suggestion to look in the registry is probably the way to go. The info on add-in load order that I've seen has been rather vague.
which iid i should use in case of excel/ppt?

Googling for [excel iid guid] found http://www.codeproject.com/internet/outlookxpevents.asp, in which I found:
// Excel AppEvents GUID
//const IID IID_ApplicationEvents =
//{0x00024413,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}};

A search for a ppt IID returned too much cruft for me to wade through in a timely manner, so I didn't find one for ppt.

google is your friend.

hth,

-Peter
 
J

Jim Vierra

Tahnks much Peter although I can't really reply to this message as it was
sent from the future (2/28/2005). Have you checked you clock lately?

Thanks again. It will come in handy.

--
Jim Vierra 661815
"Peter" <peterguy -at- hotmail -dot- com> wrote in message
Sorry for the double posts, but I found a new post in
microsoft.public.word.vba.general (12/27/2004 7:11 PM) by Klaus Linke
describing the load order of templates and add-ins in MS Word:

Word comes with lots of built-in, pre-defined keyboard shortcuts (=
"application
layer" customizations). Then it loads add-ins, then global templates in the
startup folder(s) (alphabetically from "Z" to "A"), then Normal.dot, then
the
attached template, and finally customizations made in the document itself.

There's more of value in the post; check it out.

The post was made in response to a post by "Let2Editor" with the subject
"'AttachedTemplate'" posted 12/17/2004 5:45 PM.

The whole thread is archive-worthy, as it contains the enlightening post by
Klaus, as well as a post by Charles Kenyon, who wrote an MSDN article about
Word templates
(http://msdn.microsoft.com/library/en-us/dnword2k2/html/odc_wdtemp.asp).

Here's the google groups link:
http://tinyurl.com/4v2q2

hth,

-Peter
 
P

Peter

Sorry for the double posts, but I found a new post in microsoft.public.word.vba.general (12/27/2004 7:11 PM) by Klaus Linke describing the load order of templates and add-ins in MS Word:

Word comes with lots of built-in, pre-defined keyboard shortcuts (= "application
layer" customizations). Then it loads add-ins, then global templates in the
startup folder(s) (alphabetically from "Z" to "A"), then Normal.dot, then the
attached template, and finally customizations made in the document itself.

There's more of value in the post; check it out.

The post was made in response to a post by "Let2Editor" with the subject "'AttachedTemplate'" posted 12/17/2004 5:45 PM.

The whole thread is archive-worthy, as it contains the enlightening post by Klaus, as well as a post by Charles Kenyon, who wrote an MSDN article about Word templates (http://msdn.microsoft.com/library/en-us/dnword2k2/html/odc_wdtemp.asp).

Here's the google groups link:
http://tinyurl.com/4v2q2

hth,

-Peter
 

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