You first need a reference in your project to System.Printing
. Then you can use the following code right after you declare your PrintDialog
object.
pd.PrintQueue = new PrintQueue(new PrintServer(), "The exact name of my printer");
The PrintQueue
is an object that represents the printer and everything else about that print queue.