This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Creating a Word file
Create a new project
Сonsole application
Add a reference to the project
Select the Microsoft Word
14.0 Object Library
Make sure that selected libraries are added to
the section “References”
Add the namespace
Microsoft.Office.Interop.Word
Create a file word.doc
on the disk C
Input text in the created file
Add the following source code in
the function Main
The result of the program work
Change the source code to the following in
the function Main
The result of the program work
Add the following source code in the
function Main
The result of the program work
Add the following source
code in the function Main
The result of the program work
Add the following source code in the function Main