"news.ntlworld.com" <Or********@ntlworld.com> schrieb:
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 _
)
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>