I am using the following code to print a file, this working fine but i am not sure that why this is printing with default printer, i want to use the printer specified in this line P.StartInfo.Arguments = "Hp 3500";
Please any one help me.
Here is my code...
System.Diagnostics.Process P = new Process();
string filename = "c:\doc.txt";
P.StartInfo.FileName = filename;
P.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
P.StartInfo.Verb = "PrintTo";
P.StartInfo.Arguments = "Hp 3500";
P.StartInfo.CreateNoWindow = true;
P.Start();
Thanks in advance.