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 » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

add-in won't load



 
 
Thread Tools Search this Thread Display Modes
  #11  
Old April 8th 09, 05:19 AM posted to microsoft.public.outlook.program_addins
Jason
external usenet poster
 
Posts: 41
Default add-in won't load

It works! Thanks Ken. You are genius.

"Ken Slovak - [MVP - Outlook]" wrote in message
...
Please do not start new threads for the same problem. It just confuses
things.

If items in the Outbox are messed with using code then they won't go out.
That is true of all Outlook versions. So the simple answer is don't do
that. There's no need to do it, so don't.

If the ActiveExplorer.CurrentFolder is Outbox just don't handle
SelectionChange() there. If it's not Outbox you can safely handle
SelectionChange(). Since BeforeFolderSwitch() will fire before the folder
in the Explorer is switched to Outbox you will know when that happens. So
just remove the SelectionChange() handler then and reinstate it when the
folder isn't Outbox.

--
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


"Jason" wrote in message
...
Now the problem of email won't go out also occurs on Outlook 2003. So it
is not 2007 specific.

After comment out the explorer.SelectionChange, emailing resumes normal.

explorer.SelectionChange +=
new
Outlook.ExplorerEvents_10_SelectionChangeEventHand le(ThisAddIn_SelectionChanged);

The reason of using explorer.SelectionChange is to catch EntryIDs of the
appointments to be deleted.

The Email problem has been fixed in Outlook 2007 by replacing
SelectionChange with BeforeItemMove event.

What is the feasible solution for 2003?

I'll start a new thread.


"Jason" wrote in message
...
Yes you are right. The problem only occurs when user clicks the Outbox
folder then create a new mail. No problem if user has not highlighted
the Outbox.

Once the mail is stalled, no matter how many times you click Send and
Receive button, it will stay there forever, even after user move to
other folder or restart Outlook. You have to delete it, and create an
new mail.

What can I do then? Tell user not to select Outbox, or unselect the
Outbox programmatically if user does that?




Ads
  #12  
Old April 21st 09, 04:57 PM posted to microsoft.public.outlook.program_addins
Jason
external usenet poster
 
Posts: 41
Default add-in won't load

The problem of Email won't go out appears in one VM for Outlook 2007. No
problem in dev machine since we replaced the ActiveExplorer.SelectionChange
with BeforeItemMove event. Now the suspect is
Application.Inspectors.NewInspector event. What we really need is the
calendar item open event (or better, the Read event to handle in place
input). Is there any way to catch the calendar item Open/Read event without
intercepting the NewInspector event? Please advise how to.




"Jason" wrote in message
...
It works! Thanks Ken. You are genius.

"Ken Slovak - [MVP - Outlook]" wrote in message
...
Please do not start new threads for the same problem. It just confuses
things.

If items in the Outbox are messed with using code then they won't go out.
That is true of all Outlook versions. So the simple answer is don't do
that. There's no need to do it, so don't.

If the ActiveExplorer.CurrentFolder is Outbox just don't handle
SelectionChange() there. If it's not Outbox you can safely handle
SelectionChange(). Since BeforeFolderSwitch() will fire before the folder
in the Explorer is switched to Outbox you will know when that happens. So
just remove the SelectionChange() handler then and reinstate it when the
folder isn't Outbox.

--
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


"Jason" wrote in message
...
Now the problem of email won't go out also occurs on Outlook 2003. So it
is not 2007 specific.

After comment out the explorer.SelectionChange, emailing resumes normal.

explorer.SelectionChange +=
new
Outlook.ExplorerEvents_10_SelectionChangeEventHand le(ThisAddIn_SelectionChanged);

The reason of using explorer.SelectionChange is to catch EntryIDs of the
appointments to be deleted.

The Email problem has been fixed in Outlook 2007 by replacing
SelectionChange with BeforeItemMove event.

What is the feasible solution for 2003?

I'll start a new thread.


"Jason" wrote in message
...
Yes you are right. The problem only occurs when user clicks the Outbox
folder then create a new mail. No problem if user has not highlighted
the Outbox.

Once the mail is stalled, no matter how many times you click Send and
Receive button, it will stay there forever, even after user move to
other folder or restart Outlook. You have to delete it, and create an
new mail.

What can I do then? Tell user not to select Outbox, or unselect the
Outbox programmatically if user does that?






  #13  
Old April 22nd 09, 03:21 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default add-in won't load

If you don't want to handle NewInspector() you would have to follow the
Selection of ActiveExplorer() and instantiate event handling objects for
each Selection member. Then you can handle the Open(), Close(), Read(), etc.
events for those items.

--
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


"Jason" wrote in message
...
The problem of Email won't go out appears in one VM for Outlook 2007. No
problem in dev machine since we replaced the
ActiveExplorer.SelectionChange with BeforeItemMove event. Now the suspect
is Application.Inspectors.NewInspector event. What we really need is the
calendar item open event (or better, the Read event to handle in place
input). Is there any way to catch the calendar item Open/Read event
without intercepting the NewInspector event? Please advise how to.


 




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
Load request form fails: Could not load some objects because they arenot available on this machine [email protected] Outlook - General Queries 1 August 5th 08 11:22 PM
Load MSG into PST MON205[_2_] Add-ins for Outlook 4 July 22nd 08 08:56 AM
load Dll Lisandro Oliveira Outlook and VBA 2 February 21st 07 05:55 PM
Error when add-in tries to load Ken W Outlook - Installation 4 November 14th 06 01:31 PM
Load once Dave C Outlook - Installation 2 January 24th 06 07:42 PM


All times are GMT +1. The time now is 12:51 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.