|
-
Feb 28th, 2012, 12:18 PM
#1
New Member
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
-
Jun 8th, 2012, 12:57 AM
#2
New Member
Re: printing a series of page one after another, but ...
 Originally Posted by DavidRemotti
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.
-
Jun 18th, 2012, 02:44 AM
#3
New Member
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
-
Oct 1st, 2012, 11:01 AM
#4
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|