Windows Develop Bookmark and Share   
 index > Windows Forms General > Print and Print Preview contents of Richtextbox (Using VS 2008 C#)
 

Print and Print Preview contents of Richtextbox (Using VS 2008 C#)

I am makin a notepad using a Richtectbox and I want touse the PrintDialog and PrintPreviewDialog tools in it. I can see tht text can be printed easily but I want to use these tools for the rtf contect. How can this be done ?
please help me :(
Rabie Zahid  Saturday, September 12, 2009 11:57 AM
Check this thread for a complete example.

Hans Passant.
nobugz  Saturday, September 12, 2009 7:10 PM
I am makin a notepad using a Richtectbox and I want touse the PrintDialog and PrintPreviewDialog tools in it. I can see tht text can be printed easily but I want to use these tools for the rtf contect. How can this be done ?
please help me :(

Search for "PrintingRichTextBox". On CodeProject, I think. Also "Print RichTextBox" using C# on MSDN.
JohnWein  Saturday, September 12, 2009 3:30 PM
Check this thread for a complete example.

Hans Passant.
nobugz  Saturday, September 12, 2009 7:10 PM
Here's a CodeProject article that describes how to render RichTextBox documents into a PrintDocument:

http://www.codeproject.com/KB/printing/RichTextBoxDocument.aspx

Hope this helps.
Sunny P  Wednesday, October 07, 2009 10:34 PM

You can use google to search for other answers

Custom Search

More Threads

• Distance between ToolStrip controls
• .NET 3.5 Datasets, Code Separation, and Custom Tool Namespace problem
• Splash screen thread causing lost focus on main application form
• Select All in FileView
• why isn't my dataset filled ???
• create a moveable panel in vb.net?
• datetime format yyyy-MM-dd hh:mm AM/PM
• Implimenting user controls - Missing assembly reference?
• label
• Want to get Data which is return by typing any URL with certain specification