Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have two or more printers and one computer. I want to print to both printers the same document at the same time... Thus when I press print on my document both printers will print the file simultaneously. please help me :( . some one can help me in c # windows form . thank you .
Posted
Updated 13-Jan-14 3:05am
v3
Comments
Marc Gabrie 14-Jan-14 6:30am    
What kind of document do you need to print? or it's something that you have to create by yourself?

(Here a no-code option of Windows - if fits... http://technet.microsoft.com/en-us/library/cc781939(v=ws.10).aspx[^])

There is no command to print to multiply printers...
What you can do is send the documents two or more times, every time to a different printer.
 
Share this answer
 
Comments
Member 10332274 13-Jan-14 9:16am    
thank you . yeah I know that there is no command to print to multiply printers .but I need if there is willing to help me on how to create a program that can help me to solve that problem
Kornfeld Eliyahu Peter 13-Jan-14 9:19am    
"to create a program" - I can't help there.
It's you who have to start - Google some samples of document printing, than put together some code...
If you stuck with your code, than come back (together with your code) and ask questions...
Member 10332274 13-Jan-14 9:22am    
ok thanks for the concerned .
Simple, enumerate the printers on the computer, then print to whichever ones you want to print to. Here is how to enumerate the printers in C#:

http://stackoverflow.com/questions/2354435/how-to-get-the-list-of-all-printers-in-computer-c-sharp-winform[^]
 
Share this answer
 
Comments
Member 10332274 13-Jan-14 9:25am    
My question is how to print simultaneously in one computer or such two or more printers in one computer
From your application only, with no other solution in place, the one and ONLY option you have is to print to each printer individually. The Windows print subsystem does not provide functionality for printing the same document to multiple printers at the same time.

What the print subsystem does allow for is called "printer pooling". This means that two or more printers service the same print queue. This is used in high-volume print environments where one printer may take a long time to get to any one job. This still prints a single document to one printer. It's just a bunch of jobs get sent to the queue and each printer in the pool takes jobs from the queue whenever they can.

What you're referring to is called "broadcast printing". The only way to do requires you to write a new print driver. Your application would print it's job to this new print driver which then would re-print the job to each printer in the broadcast subscription.

There is off-the-shelf software that does this already. The ones that I know of are "LeadTools ePrint Professional" and "Intelliscribe". Though, it's been a long time since I've had to use them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900