Link to home
Start Free TrialLog in
Avatar of arcross
arcrossFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Print pdf files

Hi,
is it possible to send pdf files directly to the printer without showing any dialog boxes??

I tried this piece of code but it doesn't seem to work...nothing happens..

  Dim startInfo As ProcessStartInfo = New ProcessStartInfo
                startInfo.FileName = row.Cells("File").Value
                startInfo.Verb = "printto"
                startInfo.Arguments = My.Settings.PrinterName
                startInfo.CreateNoWindow = True
                startInfo.WindowStyle = ProcessWindowStyle.Hidden
                startInfo.UseShellExecute = True
                startInfo.ErrorDialog = True
                System.Diagnostics.Process.Start(startInfo)

any ideas??
thanks!
ASKER CERTIFIED SOLUTION
Avatar of Kalpesh Chhatrala
Kalpesh Chhatrala
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial