Hello again
:)
Your code does work, but I need something a little extra :
Before I can print the document I have to select the
'Page Setup' command from the File menu in IE6 and
choose A4 and setup the margins. Is there a way to
automise this either from dotnet, or even if perhaps there
are html tags which can control the browser (meta tags?)
Tia
C.K.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OS**************@TK2MSFTNGP11.phx.gbl...
* "C.K" <assdadad> scripsit: I am still working on my calendar program, and I have decided that
the best way is for my vb program to write html tags into a file and
then to print the file from ie6. Everything is fine, the only thing that
I would like to do is to have my program print the html file
automatically.
\\\
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\filename.htm"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
///
- or -
<URL:http://groups.google.de/groups?selm=...K2MSFTNGP11.ph
x.gbl>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>