J
Josh Harris
I have been searching newsgroups for solid answers on good printing
practices in .net, and have not found an answer. Obviously, .net
provides the PrintDocument/PrinterSettings objects, that from the
examples are great for printing lines with the graphics object. But
this is not very useful- how do I print a real document, like a word
doc, or a pdf? So far I have resorted to code such as the following
to print, but this does not give me the best control over my printing:
System.Diagnostics.Process proc = new Process();
proc.StartInfo.FileName = "ACROBAT.pdf";
proc.StartInfo.WorkingDirectory = "C:\\";
proc.StartInfo.Verb = "print";
proc.Start();
I would like to use the PrintDocument and other printing object, but I
would love to see a good example of their use in the real world.
Thanks
practices in .net, and have not found an answer. Obviously, .net
provides the PrintDocument/PrinterSettings objects, that from the
examples are great for printing lines with the graphics object. But
this is not very useful- how do I print a real document, like a word
doc, or a pdf? So far I have resorted to code such as the following
to print, but this does not give me the best control over my printing:
System.Diagnostics.Process proc = new Process();
proc.StartInfo.FileName = "ACROBAT.pdf";
proc.StartInfo.WorkingDirectory = "C:\\";
proc.StartInfo.Verb = "print";
proc.Start();
I would like to use the PrintDocument and other printing object, but I
would love to see a good example of their use in the real world.
Thanks