Avoid formatting codes when printing or saving

  • Thread starter Thread starter gsb58
  • Start date Start date
G

gsb58

Hi!

I've made a simple text editor as a training issue in C#.NET.
It is a TextBox control on a form.

However when I save the file or
send to printer I'll get the following

{\rtf1\ansi\deff0{\fonttbl...

and so on with the actual text embedded.

How can I in the code set the right settings for either the save or
print operations?

Me.Name
 
Hi!

I solved it, I think.

I just added some arguments to my code:

reWrite.SaveFile(myFile,RichTextBoxStreamType.RichText);

and then I made the file be saved as

myCalendar.SelectionStart.ToString() + ".rtf";

(e-mail address removed) skrev:
 
Back
Top