PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Outlook Read Email Does Not Run My Custom Form

Reply

Outlook Read Email Does Not Run My Custom Form

 
Thread Tools Rate Thread
Old 03-06-2005, 10:57 PM   #1
Mike
Guest
 
Posts: n/a
Default Outlook Read Email Does Not Run My Custom Form


Hello - I have a custom Email form in Outlook I have designed with a button
on it (with script code). I have published the form. I have unchecked the
"send form definition with item" at the property sheet.

When I click my custom button on the form it works great when I send an
Email to myself (as a test) in Outlook. But, when I send the Email from my
application it does not work. I'm thinking there is something wrong with
the code in my application and how it is launching the form. If I click
Form, Run this form then the custom button works either way (whether I send
the form directly from outlook or from my application). I am using this
code (Visual FoxPro Code):

loNameSpace = loApp.GetNameSpace("MAPI")
loOutbox = loNameSpace.GetDefaultFolder(4)
loMsg = loOutbox.Items.Add("IPM.Note.A1OLNew")
loMsg.Display

Do I need to change my code? I can't figure out why when I send it through
Outlook everything works but when I send it through my application it
doesn't. I'm thinking my code is not accessing the published forms in
Outlook. I don't know Outlook programming very well so all help would be
appreciated. Thanks.

Mike



  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