Results 1 to 3 of 3

Thread: ActiveXcruciating pain

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Location
    Boulder, Colorado
    Posts
    22
    VB'ers,

    I have an ActiveX control that is embedded in a web page. I am using Personal Web Server for testing purposes. Upon clicking a button on my control, I would like it to open a file for output. The file to be opened resides on the server at location "c:\webshare\wwwroot\mypage.html". When I test the control in a web page, it cannot find the file path. I have tested the ActiveX control with a Standard EXE and it has no problems. Please help!

    Best Regards,

    Charles Rohner
    C-Dog

  2. #2
    Hyperactive Member barrk's Avatar
    Join Date
    Sep 2000
    Location
    My own little world
    Posts
    274
    Originally posted by vlbh99
    VB'ers,

    I have an ActiveX control that is embedded in a web page. I am using Personal Web Server for testing purposes. Upon clicking a button on my control, I would like it to open a file for output. The file to be opened resides on the server at location "c:\webshare\wwwroot\mypage.html". When I test the control in a web page, it cannot find the file path. I have tested the ActiveX control with a Standard EXE and it has no problems. Please help!

    Best Regards,

    Charles Rohner
    Try replacing "c:\webshare\wwwroot\mypage.html"

    with

    \\ipaddress\webshare\wwwroot\mypage.html
    (where ipaddress is your ipaddress)

    We think this is due to the fact that it is a virtual directory.

    Hope this helps!

  3. #3
    Member
    Join Date
    Jan 2001
    Location
    Washington, USA
    Posts
    61
    When using an ASP page, you need to use this to reference the file. For instance, to get the path to "data.txt", you need to do this:
    <%= server.mappath("data.txt")%>
    I don't know how it would relate when embedding an ActiveX into a web page, though.

    Samwise Galenorn
    [email protected]

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