sebas1102
06-18-2008, 09:31 PM
Hi all,
I'm trying to control Internet explorer to input, search and print documents.
But everytime I click the submit button, the website will prompt IE to print the document, and the "print popup" will come about.
I tried to use sendkeys("Enter") but it doesn't seem to send the "enter" command to the popup.
I also tried using IE.ExecWB 6, 2, but it only commands IE to print another copy, and it did not supress the "print pop-up". :banghead:
What's the code for clicking "print" button? thanks!
IE.Document.forms(0).Item(17).Click
While IE.Busy = True
Wend
IE.ExecWB 6, 2
I'm trying to control Internet explorer to input, search and print documents.
But everytime I click the submit button, the website will prompt IE to print the document, and the "print popup" will come about.
I tried to use sendkeys("Enter") but it doesn't seem to send the "enter" command to the popup.
I also tried using IE.ExecWB 6, 2, but it only commands IE to print another copy, and it did not supress the "print pop-up". :banghead:
What's the code for clicking "print" button? thanks!
IE.Document.forms(0).Item(17).Click
While IE.Busy = True
Wend
IE.ExecWB 6, 2