Results 1 to 5 of 5

Thread: [RESOLVED] Can't Create ActiveX Component

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    165

    Resolved [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

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    165

    Re: Can't Create ActiveX Component

    yes they hv the outlook but how can i be sure that the CDO is installed?
    thx

  4. #4
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Can't Create ActiveX Component

    Please mark you thread resolved using the Thread Tools as shown

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    165

    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
  •  



Click Here to Expand Forum to Full Width