Export Data From RichTextBox to MS Word in C# – Programming, Pseudocode Example, C# Programming Example

Export Data From RichTextBox to MS Word in C#

In this article, I’ll show you How to Export data into Word Document using C# Windows Form.

And you will find all of the code and output in bottom of article.


Form Design:

1x RichTextBox
1x Button



Step 1: Add a reference by right clicking to the “References”  in the Solution Explorer.


Step 2: Then we will see the Reference Manager in the panel. We have to add the  Microsoft Word XX.XX Object Library into our project as a reference for exporting to the Microsoft Word.

Step 3: After the adding is finished, let’s start the project. Add the namespace to using

 Step 4: Double click to button1 and add following codes.(Button1_Click event).



All Code:


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: