Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i take print of my current windows application form?
Posted

The best way to manage printing in your application, is to use the PrintDocument Class. MSDN Article[^]. Saving a bitmap of the form, and printing the bitmap gives you terrible results, rather use the GDI+( MSDN[^] ) classes to generate a proper document and print that.

Hope this helps
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Jun-11 12:55pm    
Totally agree, my 5.
I added just my 2 cents to it, please see.
--SA
Take a look, a very detailed example on the MSDN Magazine article

Preview and Print from Your Windows Forms App with the .NET Printing Namespace[^]
 
Share this answer
 
Comments
Uday P.Singh 28-Jun-11 13:36pm    
good one my 5
 
Share this answer
 
Don't print a form! Print some data — the document. Use the same very data to generate a form look and the printed presentation of it. As Wayne correctly suggested, use System.Drawing.Printing.PrintDocument, see the code sample: http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx[^].

—SA
 
Share this answer
 
altr + printscreen

then paste in print

thanks
faisal
 
Share this answer
 
Comments
Tarun.K.S 28-Jun-11 4:45am    
Lol!
[no name] 28-Jun-11 5:01am    
Ha Ha LOL !!!
Uday P.Singh 28-Jun-11 13:35pm    
Nice LOL!!

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