Export Data From Textbox to MS Word in C# – Programming, Pseudocode Example, C# Programming Example
C# Windows Form

Export Data From Textbox to MS Word in C#

In this example, we’ll learn how to export texbox value to MS Word.

 

Step 1: Form Design. Add TextBox and Button.

Step 2:  Change the MultiLine property of the textBox control.

 

Step 3: Rigth click  on References then click Add Reference.

Step 4: Click COM and Search for Word library. Then use Microsoft Word Object Library ( Maybe version will be changed on your computer)

Step 5: Add those using to alias.

Step 6: ðŸ™‚ Button1_Click Code

Output:

All of the Codes:

 

Leave a Comment

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