Giving the focus to the webbrowser Document for printing
Posted on 2004-05-03
I want to put the focus on the webbrowser object when the form loads. Webbrowser object contans a word document. When i say print , it takes forever time. If i click on the document and then click on print it prints immediately.If i dont click on the webbrowser control and click on print it takes forever time. please advise.
The code for printing.
Private Sub mnuprint_Click()
' dislays the print dialog box and prints
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER
This the code for printing the webbrowser contents. Any sugesstions or advise will be appreciated.
Kedar P Deshpande