creating a word file by a template
TRANSCRIPT
Creating a Word file by a template
Create a new project
of the type Windows Forms
Add a reference to the project
In the tab COM, select the object library Microsoft
Word 12.0
Add a namespace Microsoft.Office
Interop.Word to the project
Copy the template “Individual plan.doc”
into the project directory
Open Word parameters
Specify that it is necessary to show the tab “Developer”
on the tape
Add the control element “Field” into the 1st cell of the
2nd section
Name the bookmark as
“WebOfScience Scopus”
Add the control element “Field” into the 1st cell of the
3rd section
Name the bookmark as
“RussianScienceCitationIndex”. Save
and close the template
In the project VisualStudio for the
developed application create
the following interface
In the event of clicking “Save”, add the
following source code and run the program
Fill out text fields with data and click
“Save”
As a result of the program execution, the corresponding cells of
the template will be filled with the inputted data