Outlook dev question
-
I'm writing an Outlook Add-in using VSTO 2005. However there's a slight problem; when I attach event handlers to the CustomAction event of MailItems sometimes the function doesn't get called. There are cases when attaching them more times (at run-time) overcomes this problem, however sometimes it looks like they don't "stick", meaning I click a custom action button once and it works, then I push it a second time and now the handling function does not get called. I even fail to recognize the pattern in this random behavior. Has anyone else faced similar issues, and if so how do I overcome them?
-
I'm writing an Outlook Add-in using VSTO 2005. However there's a slight problem; when I attach event handlers to the CustomAction event of MailItems sometimes the function doesn't get called. There are cases when attaching them more times (at run-time) overcomes this problem, however sometimes it looks like they don't "stick", meaning I click a custom action button once and it works, then I push it a second time and now the handling function does not get called. I even fail to recognize the pattern in this random behavior. Has anyone else faced similar issues, and if so how do I overcome them?
I recently did a combination plugin for Excel/Outlook using the Office 2007 PIAs and VSTO2005... I ran into the same behavior with BOTH applications... What I finally had to end up doing was after each event was fired, I rewired the event, just to be on the safe side because I could not predict when and where it would happen. It's a nasty thing to have to do, but it's no worse than having to switch a 1-based index just to code to Office apps. :laugh: HTH, ~dnc
-
I recently did a combination plugin for Excel/Outlook using the Office 2007 PIAs and VSTO2005... I ran into the same behavior with BOTH applications... What I finally had to end up doing was after each event was fired, I rewired the event, just to be on the safe side because I could not predict when and where it would happen. It's a nasty thing to have to do, but it's no worse than having to switch a 1-based index just to code to Office apps. :laugh: HTH, ~dnc
-
I recently did a combination plugin for Excel/Outlook using the Office 2007 PIAs and VSTO2005... I ran into the same behavior with BOTH applications... What I finally had to end up doing was after each event was fired, I rewired the event, just to be on the safe side because I could not predict when and where it would happen. It's a nasty thing to have to do, but it's no worse than having to switch a 1-based index just to code to Office apps. :laugh: HTH, ~dnc