Printing HTML document from Windows Service

rocky050371

New member
Joined
Aug 4, 2011
Messages
3
Programming Experience
5-10
I have a service which is running as myself (admin)


Dim info = New System.Diagnostics.ProcessStartInfo()
info.FileName = sPath & sResult
info.Arguments = "\\EXCH01\Dell MFP Laser 3115cn PCL6"
info.CreateNoWindow = True
info.WindowStyle = ProcessWindowStyle.Hidden
info.UseShellExecute = True
info.Verb = "printto"
System.Diagnostics.Process.Start(info)

When this executes nothing happens (no exception), the file is a html file on my desktop. Both htm and html files have associated programs (iexplore.exe). If I copy sPath & sResult and execute it in hte run command it brings up the page in ie. Anyone have any ideas?
 
Back
Top