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