DDE Conversations in btwn WordPerfect & Outlook 2000

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to initiate a DDE conversation from WP to Outlook?
Sorry -- WP is NOT my choice.

I am trying to open a new message window and insert text into the TO,
SUBJECT and MESSAGE boxes. I am also willing to entertain other options on
completing this task. I have used the AppExecute, AppActivate and SendKeys
features in WP PerfectPerfect macros, but this is an unreliable method
(works 50% of the time).

Any thoughts?
 
Does anyone know how to initiate a DDE conversation from WP to
Outlook? Sorry -- WP is NOT my choice.

I am trying to open a new message window and insert text into the TO,
SUBJECT and MESSAGE boxes. I am also willing to entertain other
options on completing this task.

Depends on what you can do from within Wordperfect.

One option would be to run the system command "mailto:recipient?
subject=blah&body=blah", using whatever WP lets you do there (Start |
Run | enter that text, and Outlook should pop up a window populated
appropriately). Simple MAPI might work if you can call generic DLL
functions from WordPerfect, or if you can get at COM interfaces, then
the Outlook Object Model will do the trick as well.

Another alternative would be to write a helper executable that'll fire
up Outlook and call that exectuable from WP; or if WP can do DDE, write
a DDE server (however in heck you do that..) and call your server, and
then your server calls Outlook.

-- dan
 
Dan: The 'mail to' option works great with the 'SendKeys' command in WP.
Thanks so much!

John
 
Does anyone know how to initiate a DDE conversation from WP to Outlook?
Sorry -- WP is NOT my choice.

I am trying to open a new message window and insert text into the TO,
SUBJECT and MESSAGE boxes. I am also willing to entertain other options on
completing this task. I have used the AppExecute, AppActivate and SendKeys
features in WP PerfectPerfect macros, but this is an unreliable method
(works 50% of the time).

Any thoughts?

AFAIK WordPerfect provides VBA functionality, just like MS Word does.
Consequently, the standard VBA routines published on various web sites
should work. Here's a start:

Set objMailItem = CreateObject("Outlook.Application").CreateItem(olMailitem)
With objMailItem
.Subject = "Hello World!"
.Body = "The message body"
.Recipients.Add("someone@somewhere")
.Recipients(1).Type = 1 ' olTo
End With
objMailItem.Send ' or objMailItem.Display

SendKeys is always a kludge.
 
Back
Top