title | description | ms.date | dev_langs | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
How to: Print with a WebBrowser Control |
Learn about how to print with a WebBrowser Control by means of C# and Visual Basic code examples. |
03/30/2017 |
|
|
|
3fb2a305-64ce-4b6c-9258-5330d3f21b6c |
The following code example demonstrates how use the xref:System.Windows.Forms.WebBrowser control to print a Web page without displaying it.
[!code-csharpWebBrowserMisc#10] [!code-vbWebBrowserMisc#10]
This example requires:
- References to the
System
andSystem.Windows.Forms
assemblies.
- xref:System.Windows.Forms.WebBrowser
- xref:System.Windows.Forms.WebBrowser.Print%2A
- xref:System.Windows.Forms.WebBrowser.Url%2A
- How to: Navigate to a URL with the WebBrowser Control
- How to: Add Web Browser Capabilities to a Windows Forms Application
- How to: Create an HTML Document Viewer in a Windows Forms Application
- WebBrowser Control Overview
- WebBrowser Security