While you are still in code view in the Visual Studio project, add the following code within the btnText_Click event:
In the above code, a word document is created with some text is added to it using AddParagraph method. It allows you to save the created document to the location of your choice. You can select the desired location and if you want, you can change the name of the document as well. The document is then saved with the name, document.rtf or the name you provided it.