Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Webbrowser 2

Status
Not open for further replies.
Aug 2, 2002
28
GB
Help???

I am trying to print the contents of a webbrowser which I have navigated to via the commondialog. The general contents of browser window will be *.doc or *.xls files.

I am using code:

mainbrowser.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER

The problem is that the printer prompt window does not automatically open. If I click within the browser window the option window appears and I can select the printer and continue as normal.

Any suggestions??
 
This is just a thought..
Try adding a WebBrowser.SetFocus just before this code may be the focus is moving outside.

Zameer Abdulla
Visit Me
 
I think that answer deserves a star! I certainly wouldn't have thought of it.


Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Just like Bernard and Manny in "Black Books". Manny does not get a gold star but Bernard gives himself one for smoking 40 cigarettes before lunch.

[smile]
graabein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top