|
-
Jan 27th, 2009, 05:43 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Can't Create ActiveX Component
Hello,
I am using the following code to send an email thru Outlook 2003:
Code:
Dim omsg As Object
Dim oRcp As Object
Dim objCDO As MAPI.Session
objCDO = CreateObject("MAPI.Session")
objCDO.Logon("", "", False, False)
omsg = objCDO.Outbox.Messages.Add
omsg.Subject = subject
omsg.Text = body
oRcp = omsg.Recipients.Add
oRcp.Type = 1
oRcp.Name = sto
oRcp.Resolve()
oRcp = omsg.Recipients.Add
oRcp.Type = 3
oRcp.Name = esender
oRcp.Resolve()
omsg.Send(False)
objCDO.Logoff()
omsg = Nothing
oRcp = Nothing
I am getting the error "Can't Create ActiveX Component" on some PCs.
please advise.
Thanks
Hiba
-
Jan 27th, 2009, 06:12 AM
#2
Re: Can't Create ActiveX Component
Does those system has the OutLook or CDO installed ?
Please mark you thread resolved using the Thread Tools as shown
-
Jan 27th, 2009, 06:31 AM
#3
Thread Starter
Addicted Member
Re: Can't Create ActiveX Component
yes they hv the outlook but how can i be sure that the CDO is installed?
thx
-
Jan 27th, 2009, 06:37 AM
#4
Re: Can't Create ActiveX Component
Please mark you thread resolved using the Thread Tools as shown
-
Jan 27th, 2009, 07:04 AM
#5
Thread Starter
Addicted Member
Re: Can't Create ActiveX Component
ok thx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|