Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi Friends

I have a form of GUI in C# and i have 8 text box. i want to create print preview and then print the textbox on button click . Pleaes help me.

coding of printpreview dilog box........


thanks

in advance........
Posted
Updated 27-Feb-13 22:32pm
v2

If you use a PrintDocument, the print preview is built in.

MSDN: Display Print Preview in Windows Forms Applications[^]
 
Share this answer
 
Hi,

Take a look at the following links.

How to print the content of a RichTextBox control by using Visual C# .NET or Visual C# 2005
http://support.microsoft.com/kb/812425[^]

Print and Print Preview contents of Richtextbox (Using VS 2008 C#)
http://social.msdn.microsoft.com/Forums/en/winforms/thread/348c3c1d-ab24-498b-8370-c9fd2301dde0[^]

Print Preview and Print
http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/460163c1-b68b-4a61-a443-c77009ccff15[^]
 
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