StreamWriter and formatting

G

Guest

i have a richtextbox control containing text with bold and various font formatting.
when i write to a text file or Word document using streamwriter, all the formatting is lost. how do i preserve the original formatting???
thanks.
 
G

Guest

Try using "SaveFile" method of the richtext control
eg: rtc.SaveFile("filename.doc",RichTextBoxStreamType.RichText);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top