Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CognosScipt and MS Outlook 1

Status
Not open for further replies.
Feb 16, 2001
44
0
0
CA
Hi,

Could anybody help me with CognosScript. I need to invoke MS Outlook to send an e-mail when macro is done.

Thank you.
 
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookEmail = objOutlook.CreateItem(OlMailItem)
objOutlookEmail.Body = strBody
objOutlookEmail.To = strTo
objOutlookEmail.Display
objOutlookEmail.Send

Matt
 
Hi Matt,

I tried that in VB it is working, but you use CognosScript Editor it is giving the error:
The Variable OlMailItem is not found

Any other ideas?

Thank you any way.
Julia

 
Not sure, it was for Outlook 98 so I don't know if something was changed.
 
try using 0 instead. Remember CreateObject is latebound so you don't have direct access to the library.

Scott.
shope@gov.mb.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top