•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 402,048 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,528 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 250 | Replies: 0
![]() |
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.
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.
Thanks and Best of Lusk,
Farid ud din Masood
MS.c (CS)
University of Agriculture, Faisalabad
Farid ud din Masood
MS.c (CS)
University of Agriculture, Faisalabad
![]() |
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the C# Forum
- Previous Thread: Chat Program
- Next Thread: Change Focus in textbox


Linear Mode