PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins OnItemSend cancel problem

Reply

OnItemSend cancel problem

 
Thread Tools Rate Thread
Old 12-06-2007, 05:20 PM   #1
weirdbeard@gmail.com
Guest
 
Posts: n/a
Default OnItemSend cancel problem


I've written an Outlook add-in in VS.net 2005, which when a user sends
an email it pops up a custom dialog. There are several buttons on the
form, one of which is a cancel button. If the user pushes the cancel
button then the dialog closes and it should cancel sending the email
(i.e., present them back to their message). The way I am doing this is
by setting the cancel variable (passed in ByRef to OnItemSend which is
handling ItemSend event) which should cancel the sending.

I've verified that if the cancel button is pushed then the cancel var
is being set to true but unfortunately the email is still sent
regardless.

Can anyone think of what might be causing this? Please let me know if
you need any more info.

Matt

  Reply With Quote
Old 12-06-2007, 07:34 PM   #2
=?Utf-8?B?YnN0cnVt?=
Guest
 
Posts: n/a
Default RE: OnItemSend cancel problem

We encountered this problem when rolloing out our addin. The code at the
following url fixed it for us.

http://support.microsoft.com/kb/830519

Benjamin Strum
ThinkTron Corporation

"weirdbeard@gmail.com" wrote:

> I've written an Outlook add-in in VS.net 2005, which when a user sends
> an email it pops up a custom dialog. There are several buttons on the
> form, one of which is a cancel button. If the user pushes the cancel
> button then the dialog closes and it should cancel sending the email
> (i.e., present them back to their message). The way I am doing this is
> by setting the cancel variable (passed in ByRef to OnItemSend which is
> handling ItemSend event) which should cancel the sending.
>
> I've verified that if the cancel button is pushed then the cancel var
> is being set to true but unfortunately the email is still sent
> regardless.
>
> Can anyone think of what might be causing this? Please let me know if
> you need any more info.
>
> Matt
>
>

  Reply With Quote
Old 13-06-2007, 10:08 AM   #3
weirdbeard@gmail.com
Guest
 
Posts: n/a
Default Re: OnItemSend cancel problem

Thanks - we're using Office 2003 so the bug should have been fixed
(according to that link) but there's some useful info in there.

On Jun 12, 7:34 pm, bstrum <bst...@discussions.microsoft.com> wrote:
> We encountered this problem when rolloing out our addin. The code at the
> following url fixed it for us.
>
> http://support.microsoft.com/kb/830519
>
> Benjamin Strum
> ThinkTron Corporation
>
> "weirdbe...@gmail.com" wrote:
> > I've written an Outlook add-in in VS.net 2005, which when a user sends
> > an email it pops up a custom dialog. There are several buttons on the
> > form, one of which is a cancel button. If the user pushes the cancel
> > button then the dialog closes and it should cancel sending the email
> > (i.e., present them back to their message). The way I am doing this is
> > by setting the cancel variable (passed in ByRef to OnItemSend which is
> > handling ItemSend event) which should cancel the sending.

>
> > I've verified that if the cancel button is pushed then the cancel var
> > is being set to true but unfortunately the email is still sent
> > regardless.

>
> > Can anyone think of what might be causing this? Please let me know if
> > you need any more info.

>
> > Matt



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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