ProcessStartInfo - Shell - Printing

G

Guest

I am using the following C# code to print a PDF to a network printer. The
document prints in portrait mode, I would like the document to print in
Landscape mode. Is there/What is the argument that I need to supply to
accomplish this?

ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = FileName;
startInfo.Verb = "printto";
startInfo.Arguments = @"\\server1\Printer1";
startInfo.CreateNoWindow = true;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.UseShellExecute = true;
startInfo.ErrorDialog = true;
System.Diagnostics.Process.Start(startInfo);

Thank You,
Vinny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top