Printing HTML documents

  • Thread starter Thread starter news.ntlworld.com
  • Start date Start date
news.ntlworld.com said:
How do I print HTML documents using vb.NET

Printing files of various types without user interaction
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=printinganyfile&lang=en>

WebOCHostVB.exe Hosts the WebBrowser Control in Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;311303>

\\\
Const OLECMDID_PRINT As Int32 = 6
Const OLECMDEXECOPT_DODEFAULT As Int32 = 0
Const OLECMDEXECOPT_DONTPROMPTUSER As Int32 = 2
Me.WebBrowser1.ExecWB( _
OLECMDID_PRINT, _
OLECMDEXECOPT_DODEFAULT _
)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top