A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

AdvancedSearchComplete event handler



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 15th 07, 07:12 PM posted to microsoft.public.outlook.program_vba
nana
external usenet poster
 
Posts: 11
Default AdvancedSearchComplete event handler

Hello MVPs, hello everyone,
I am trying to write me eventhandler to catch the event
AdvancedSearchComplete.
SCRIPT FOR="Outlook" EVENT="AdvancedSearchComplete()" language='vbscript'
alert("search is completed");
/script
But some how this alert has never come up. Any idea?
Or do you have another way to catch the event?


Regards,
Hena
  #2  
Old June 15th 07, 09:34 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default AdvancedSearchComplete event handler

Outlook object events are not available to scripting languages. You will
need to call a client-side .dll that implements the required Outlook objects,
or redo your solution to use the Outlook Object Model via VBA macros, a
custom COM app, or a COM Add-In.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"nana" wrote:

Hello MVPs, hello everyone,
I am trying to write me eventhandler to catch the event
AdvancedSearchComplete.
SCRIPT FOR="Outlook" EVENT="AdvancedSearchComplete()" language='vbscript'
alert("search is completed");
/script
But some how this alert has never come up. Any idea?
Or do you have another way to catch the event?


Regards,
Hena

  #3  
Old June 29th 07, 05:48 PM posted to microsoft.public.outlook.program_vba
nana
external usenet poster
 
Posts: 11
Default AdvancedSearchComplete event handler

Dear Eric,
Thanks for your reply. A bit disappointed though (not because of you, but
the fact that outlook allows script language to access the outlook object and
perform search but not returning the events).
Well... I need it on a web application so VBA marcros is not an option for
me.
Do you have any sample how the rest of your suggestions could be achieved?
Thanks


"Eric Legault [MVP - Outlook]" wrote:

Outlook object events are not available to scripting languages. You will
need to call a client-side .dll that implements the required Outlook objects,
or redo your solution to use the Outlook Object Model via VBA macros, a
custom COM app, or a COM Add-In.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"nana" wrote:

Hello MVPs, hello everyone,
I am trying to write me eventhandler to catch the event
AdvancedSearchComplete.
SCRIPT FOR="Outlook" EVENT="AdvancedSearchComplete()" language='vbscript'
alert("search is completed");
/script
But some how this alert has never come up. Any idea?
Or do you have another way to catch the event?


Regards,
Hena

  #4  
Old June 30th 07, 07:10 AM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default AdvancedSearchComplete event handler

The alternative I was suggesting does involve an installation package (or at
least registering a .dll) on every PC that needs to run your web application.
So if you don't have control over your "audience", this may not work unless
they choose to download and install your software first.

If you can proceed, essentially code your logic in a .dll as if it's running
on that user's PC. But design it with the expectation that the other code
you write in your web app is going to call this client-side code, which is
essentially your "wrapper library". So your web app would do something like:

Dim myLib, myResults

Set myLib = CreateObject("MyCustomLibrary.SearchUtility")
myResults = myLib.SearchOutlook("search keyword")

Then this will load the .dll installed on the user's computer and run the
full Outlook Object Model code you wrote that uses Outlook objects, with the
appropriate events being handled there.

So in the .dll, you'd have a SearchUtility.cls file, with a SearchOutlook
function:

Function SearchOutlook(SearchString As String) As Collection

'This function could return another object - depending on how you want the
search results and what you want to do with them

'write code to search Outlook - another event not shown will be the
AdvancedSearchComplete event code

'get the results, pass it to the Function caller

SearchOutlook = whatever

End Function

Hopefully this turns on a few lightbulbs!


--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"nana" wrote:

Dear Eric,
Thanks for your reply. A bit disappointed though (not because of you, but
the fact that outlook allows script language to access the outlook object and
perform search but not returning the events).
Well... I need it on a web application so VBA marcros is not an option for
me.
Do you have any sample how the rest of your suggestions could be achieved?
Thanks


"Eric Legault [MVP - Outlook]" wrote:

Outlook object events are not available to scripting languages. You will
need to call a client-side .dll that implements the required Outlook objects,
or redo your solution to use the Outlook Object Model via VBA macros, a
custom COM app, or a COM Add-In.

--
Eric Legault - Outlook MVP, MCDBA, MCTS (SharePoint programming, etc.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"nana" wrote:

Hello MVPs, hello everyone,
I am trying to write me eventhandler to catch the event
AdvancedSearchComplete.
SCRIPT FOR="Outlook" EVENT="AdvancedSearchComplete()" language='vbscript'
alert("search is completed");
/script
But some how this alert has never come up. Any idea?
Or do you have another way to catch the event?


Regards,
Hena

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
event handler for changes to TO CC and BCC properties of mailitem epsilon_9 Outlook and VBA 3 January 15th 07 04:14 PM
Create Outlook Appointment from an Access event handler Capt Jim Cook Outlook - Using Forms 1 August 12th 06 03:38 PM
AdvancedSearchComplete Even Not Firing Dav Banks Outlook and VBA 8 June 8th 06 10:18 PM
Event Handler for Folder Selected [email protected] Add-ins for Outlook 6 May 24th 06 11:44 PM
AdvancedSearchComplete Renjith Outlook and VBA 0 May 24th 06 08:44 AM


All times are GMT +1. The time now is 08:58 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-2025 Outlook Banter.
The comments are property of their posters.