Mayank Jani

Mayank Jani

  • NA
  • 477
  • 72.8k

Print RichTextBox content with format.

Jul 20 2018 8:29 AM
Dear Members,
 
I am working on a C# Windows application. I have created a form for letter printing and I format text with Bold, Italics, Underline and also font change as per requirement. It saves in an MS Access database.
 
I found code for print the RichTextBox from here...
 
https://www.codeproject.com/Tips/673996/RichTextBox-Printing-in-Csharp-with-WinForms-VS
 
It is working but prints the letter in plain text and omits all the formatting applied to the letter.
 
I need help for...
1.How to print the RichTextBox WYSWYG?
2.How to keep the letter text lines in print exactly same as created  into the letter. presently it goes in a strait line and I have to press enter where I want to start a new line. AutoWrap like...
 
Thanks
 
Mayank Jani

Answers (6)