+ All Categories
Home > Software > Creating a word file

Creating a word file

Date post: 06-Aug-2015
Category:
Upload: aepetelin
View: 315 times
Download: 0 times
Share this document with a friend
Popular Tags:
20
Creating a Word file
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


Recommended