Printing in C#

G

Guest

Hello... I am trying to print a .pdf file using my C# application using:

Process myProcess = new Process();
myProcess.StartInfo.FileName = "c:\\Document.pdf";
myProcess.StartInfo.Verb = "Print";
myProcess.StartInfo.CreateNoWindow = true;
myProcess.StartInfo.UseShellExecute = true;
myProcess.Start();

But this doesn't do anything. Am I missing something above? What is a good
way of implementing print with C#?
 

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