Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
TitlePrint the contents of the WebBrowser control
KeywordsWebBrowser, print
CategoriesControls
 
Call the browser's ExecWB method with the OLECMDID_PRINT flag as in:

WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER

 
Private Sub Form_Load()
    WebBrowser1.Navigate _
        "http://www.vb-helper.com/index_categories.html"
End Sub

Private Sub mnuFilePrint_Click()
    WebBrowser1.ExecWB OLECMDID_PRINT, _
        OLECMDEXECOPT_PROMPTUSER
End Sub
 
Formatted by Neil Crosby
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated