Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, March 28, 2014 7:08 PM
I have a set of license text files, which i need to concatenate and save as an rtf file. Can anyone help me how to convert text string to corresponding rtf file.
All replies (3)
Monday, March 31, 2014 9:24 AM âś…Answered
Hi Vinod,
Please try RichTextBox.SaveFile method.
var rtf = new RichTextBox();
rtf.Text = "This is Text";
//var val = rtf.Rtf;
rtf.SaveFile("D:\\test.rtf");
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
Friday, March 28, 2014 7:14 PM
You could use the RichTextBox control to do the work for you...
var rtf = new RichTextBox();
rtf.Text = "This is Text";
var val = rtf.Rtf;
Les Potter, Xalnix Corporation, Yet Another C# Blog
Saturday, March 29, 2014 10:24 AM
No it wont work, will create a rtf file but content is not utf8.. even you can verify the file size.