Consulting

Results 1 to 1 of 1

Thread: How to load a picture to WebPage from local Drive

  1. #1
    VBAX Newbie
    Joined
    Jan 2016
    Posts
    3
    Location

    How to load a picture to WebPage from local Drive

    hi friends i have a problem , how to load a picture to webpage from local drive using JavaScript in VBA in microsoft access i have the following SourceCode From the WebSite and my code my code work fine but when it reach to upload the picture give you an error msg



    <td rowspan="5" class="requestphoto">
    <img id="image" runat="server" width="150px" height="150px" src='/Omra/GetImage?394620807' />
    <div class="t-widget t-upload"><div class="t-button t-upload-button"><span>Select...</span><input id="PersonalPhoto" name="PersonalPhoto" type="file" /></div></div>
    <br />
    </td>



    Option Compare Database
    Private Sub Command0_Click()
    Dim IE As Object
    Set IE = CreateObject("InternetExplorer.Application")
    IE.Navigate "https://visa.mofa.gov.sa/Omra/addOmraVisa"
    IE.Visible = True
    'apiShowWindow IE.Hwnd, SW_MAXIMIZE
    Do While IE.Busy: DoEvents: Loop
    Do While IE.ReadyState <> 4: DoEvents: Loop
    IE.Document.all("ApplicationNumber").Value = 65371771
    IE.Document.getElementById("EmbbasyCode").Value = "210"
    IE.Document.all("CommandName").Click
    IE.Document.getElementById("image").src = "file:///d:\pic\AE5902663" + ".jpg"
    Do While IE.Busy: DoEvents: Loop
    Do While IE.ReadyState <> 4: DoEvents: Loop
    End Sub
    Attached Images Attached Images
    • File Type: jpg a.jpg (116.7 KB, 4 views)
    Last edited by SamT; 01-19-2016 at 03:59 PM. Reason: Added CODE Tags with Editor # Icon

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •