Click here to Skip to main content
15,943,077 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I want to know the coding for how to print directly to the printer for my c# windows application project without view print dialog box and print preview...Please help me...

What I have tried:

Click a button directly print my report without display print dialog box and print preview
Updated 18-Apr-16 21:06pm

1 solution

There's a working example of exactly that on the MSDN page on the PrintDocument class.
It's just hit-the-button, all setup is done in code, no dialog.
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