Results 1 to 2 of 2

Thread: Expert Expert Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    229

    Expert Expert Help

    Dear all,

    The script below (test.htm) if I execute from my C drive is okay,

    but if I put the test.htm on my NT workstation

    (remote, non webserver, just as a sharing drive)

    it will prompt "ActiveX component can't create object 'Outlook.Application'" after I click the button.

    Anybody can tell me why? and how to solve it?

    Thank you in advance.


    Keiko

    --------------------


    <HTML>
    <BODY>

    <Script Language = "VBScript">

    Private Sub SendAnswer
    Set objOutlook = CreateObject("Outlook.Application")
    Set objMail = objOutlook.CreateItem(0)
    objMail.Recipients.Add("Keiko")
    objMail.Subject = "Test"
    objMail.Body = "Test"
    objMail.Send
    End Sub

    </Script>

    <input type="button" name="cmdAnswer" value = "Click" size="65" onClick="SendAnswer">

    </BODY>
    </HTML>

  2. #2
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    The NT workstation does not have outlook installed. Right ?
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

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