Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Sorting of plug-ins (http://www.outlookbanter.com/add-ins-outlook/84133-sorting-plug-ins.html)

khai January 7th 09 08:53 AM

Sorting of plug-ins
 
Hi,

Is it possible to sort the order in which plug-ins are being executed?
i.e. make one plug-in run before another?

Thanks.

Ken Slovak - [MVP - Outlook] January 7th 09 02:16 PM

Sorting of plug-ins
 
Not possible.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"khai" wrote in message
...
Hi,

Is it possible to sort the order in which plug-ins are being executed?
i.e. make one plug-in run before another?

Thanks.



khai January 9th 09 02:31 AM

Sorting of plug-ins
 
What should I do then, if I have 2 plug-ins, but would like one to run before
another?

Do I have to combine these 2 plug-ins as one?

"Ken Slovak - [MVP - Outlook]" wrote:

Not possible.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"khai" wrote in message
...
Hi,

Is it possible to sort the order in which plug-ins are being executed?
i.e. make one plug-in run before another?

Thanks.




khai January 9th 09 10:47 AM

Sorting of plug-ins
 
Is it possible to write a wrapper plug-in to wrap the 2 plug-ins, and
therefore sequence the order in which these plug-ins are executed?

"khai" wrote:

What should I do then, if I have 2 plug-ins, but would like one to run before
another?

Do I have to combine these 2 plug-ins as one?

"Ken Slovak - [MVP - Outlook]" wrote:

Not possible.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"khai" wrote in message
...
Hi,

Is it possible to sort the order in which plug-ins are being executed?
i.e. make one plug-in run before another?

Thanks.




Ken Slovak - [MVP - Outlook] January 9th 09 02:36 PM

Sorting of plug-ins
 
I'd probably just use one addin and do any sequencing of code operations as
desired in that one addin.

If you must have 2 or more addins you can initially set the ones that should
be loaded in order to have a LoadBehavior value of 2 in the registry. That
will prevent them from loading when Outlook starts. An addin that starts
normally would then do something like this when it wants to start the other
addins where olApp is your Outlook.Application object:

Dim oAddin As Office.COMAddIn
Set oAddin = olApp.COMAddIns("MyFirstAddin")
oAddin.Connect = True

That will start that addin. You can repeat for the other one with that one's
name.

To shut them down you'd use similar code but set Connect to False.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"khai" wrote in message
...
Is it possible to write a wrapper plug-in to wrap the 2 plug-ins, and
therefore sequence the order in which these plug-ins are executed?

"khai" wrote:

What should I do then, if I have 2 plug-ins, but would like one to run
before
another?

Do I have to combine these 2 plug-ins as one?




All times are GMT +1. The time now is 12:26 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com