Hi ,
Please kindly find the code below that saving the Richtextbox text to .doc file
SaveFileDialog saveFile1 = new SaveFileDialog();
saveFile1.DefaultExt = "*.doc";
saveFile1.Filter = "DOC Files|*.doc";
if (saveFile1.ShowDialog() == System.Windows.Forms.DialogResult.OK &&
saveFile1.FileName.Length > 0)
{
richTextBox1.SaveFile(saveFile1.FileName, RichTextBoxStreamType.PlainText);
MessageBox.Show("save successfully", "Address File : " + saveFile1.FileName, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
Regards,
A.Mandour