creating a word file

20
Creating a Word file

Upload: aepetelin

Post on 06-Aug-2015

313 views

Category:

Software


0 download

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

The result of the program work

Add the following source

code in the function Main

The result of the program work