I am trying to print a PDF in a C# ASP.NET application with the orientation set to landscape mode. This currently works in my dev environment but when I move it to our web server, it does not work. I can see Adobe reader open as a background process but that's it. I've read multiple posts that say to impersonate an account with unlimited access, I did this but not luck.
ProcessStartInfo info = new ProcessStartInfo();
info.Verb = "PrintTo";
info.Arguments = "Test Copier";
info.FileName = "File PAth";
info.CreateNoWindow = false;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process p = new Process();
p.StartInfo = info;
p.Start();