How to pass information from a RitchTextBox to word document

0

How do I pass the information that is in a RichTextBox to a word document in C #.

Code:

 String strtxt = rtbVertigo.Text;


            TextWriter sw = new StreamWriter(@"D:\Users\edv\Desktop\WORD\Vertigo.doc");

            sw.WriteLine(strtxt);

            sw.Close();

            MessageBox.Show("Dados exportados com sucesso");
    
asked by anonymous 21.05.2018 / 17:23

0 answers