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 and display a Print Preview for a WebBrowser control
Keywordsprint, print preview, WebBrowser, Web page, URL
CategoriesControls
 
Call the WebBrowser's ExecWB method passing it the command constant OLECMDID_PRINT or OLECMDID_PRINTPREVIEW.
 
Private Sub mnuFilePrint_Click()
    WebBrowser1.ExecWB OLECMDID_PRINT, _
        OLECMDEXECOPT_PROMPTUSER
End Sub

Private Sub mnuFilePrintPreview_Click()
    WebBrowser1.ExecWB OLECMDID_PRINTPREVIEW, _
        OLECMDEXECOPT_PROMPTUSER
End Sub
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated