Results 1 to 40 of 135

Thread: Webbrowser Control Tip and Examples

Hybrid View

  1. #1
    New Member
    Join Date
    Feb 2012
    Location
    Rome, Italy
    Posts
    1

    Re: printing a series of page one after another, but ...

    this thread has been very useful, many thanks !
    But I still have some problems.
    My application is very simple: to prepare a series of map printout from Google Maps, for a list of points I have in a DB.
    So I loop through the point, send the correct address to google maps and get the image on the webbrowser object in my form. Then issue the print command using pdf creator as printer.
    The problem is that I would like to launch the procedure and get all the printout, but at now I must have put a msgbox after each point; without it the printout are empty, because the print command does not wait for the page to complete.
    May someone give ne a hint ?
    thx
    David

  2. #2
    New Member
    Join Date
    Jun 2012
    Posts
    1

    Re: printing a series of page one after another, but ...

    Quote Originally Posted by DavidRemotti View Post
    this thread has been very useful, many thanks !
    But I still have some problems.
    My application is very simple: to prepare a series of map printout from Google Maps, for a list of points I have in a DB.
    So I loop through the point, send the correct address to google maps and get the image on the webbrowser object in my form. Then issue the print command using pdf creator as printer.
    The problem is that I would like to launch the procedure and get all the printout, but at now I must have put a msgbox after each point; without it the printout are empty, because the print command does not wait for the page to complete.
    May someone give ne a hint ?
    thx
    David
    You can delay the image print by having the script wait for the page to load.

    Code:
    Do Until webbrowser1.ReadyState = READYSTATE_COMPLETE
    DoEvents
    Loop
    This should do the trick for you.

  3. #3
    New Member
    Join Date
    Jun 2012
    Posts
    1

    How to complete and send a little form

    Hello,
    I'm trying to write a simple routine that write a text in the page http://tinywebdb.appspot.com/storeavalue and press the button "Store a value".

    Looking the html source of the page, the name of the first field il "Tag", the name of the second field is "Value" and the name of the button is "fmt"

    My test code is

    WebBrowser.Document.All("Tag").focus
    WebBrowser.Document.All("Tag").Value = "xxxxxx"

    WebBrowser.Document.All("Value").focus
    WebBrowser.Document.All("Value").Value = "yyyyyy"

    WebBrowser.Document.All("fmt").Click

    but nothing happen on the last row (don't click)
    Any idea?
    Thank you, Gianluca

  4. #4
    New Member
    Join Date
    Oct 2012
    Posts
    1

    Re: How to complete and send a little form

    How can i get the url of the site that is going to get navigated?Is there a property of webrowser for it?
    Thanx in advance..

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