17
Creating a Word file by a template

Creating a word file by a template

Embed Size (px)

Citation preview

Page 1: Creating a word file by a template

Creating a Word file by a template

Page 2: Creating a word file by a template

Create a new project

Page 3: Creating a word file by a template

of the type Windows Forms

Page 4: Creating a word file by a template

Add a reference to the project

Page 5: Creating a word file by a template

In the tab COM, select the object library Microsoft

Word 12.0

Page 6: Creating a word file by a template

Add a namespace Microsoft.Office

Interop.Word to the project

Page 7: Creating a word file by a template

Copy the template “Individual plan.doc”

into the project directory

Page 8: Creating a word file by a template

Open Word parameters

Page 9: Creating a word file by a template

Specify that it is necessary to show the tab “Developer”

on the tape

Page 10: Creating a word file by a template

Add the control element “Field” into the 1st cell of the

2nd section

Page 11: Creating a word file by a template

Name the bookmark as

“WebOfScience Scopus”

Page 12: Creating a word file by a template

Add the control element “Field” into the 1st cell of the

3rd section

Page 13: Creating a word file by a template

Name the bookmark as

“RussianScienceCitationIndex”. Save

and close the template

Page 14: Creating a word file by a template

In the project VisualStudio for the

developed application create

the following interface

Page 15: Creating a word file by a template

In the event of clicking “Save”, add the

following source code and run the program

Page 16: Creating a word file by a template

Fill out text fields with data and click

“Save”

Page 17: Creating a word file by a template

As a result of the program execution, the corresponding cells of

the template will be filled with the inputted data