• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 138
  • Last Modified:

printing WebBrowser Control

I have used the Web Browser control in my app and now I want to print the web screens.
When I try to print the form that the control is attached to all I get is the control.

Any suggestions ??
0
jimbo1
Asked:
jimbo1
  • 2
1 Solution
 
clifABBCommented:
Use this code:
Private Sub Command1_Click()
  WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT
End Sub

0
 
wfordCommented:
Just to help, ClifABB passed this referance on to me, and I think you may find it helpful
 
http://www.microsoft.com/msdn/sdk/inetsdk/help/itt/IEProg/WB/Objects/WebBrowser.htm#WebBrowser

It is basicly the help file for the webbrowser object including ExecWB
0
 
jimbo1Author Commented:
Thanks so much clifabb. I bumped up the points for your rapid response.
20 minutes and I had my answer !!!!

Thanks again.

Thank you also to wford for your comment.

0
 
clifABBCommented:
And thank you for the added points.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now