assemblies required to do Word programming in C#

H

Han-Hong

Hi, I am thinking about using C# to write a program to handle Word documents
in my job. Since I am using .NET SDK1.1, how can I make the Word object
model available to my C# program? Thanks.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?SGFuLUhvbmc=?=,
I am thinking about using C# to write a program to handle Word documents
in my job. Since I am using .NET SDK1.1, how can I make the Word object
model available to my C# program?
To program a COM app: Add a REFERENCE to the object library to the project,
from the list of COM programs. If you don't have PIAs installed, it should
create the necessary PIAs.

Note that you probably will only be able to automate Word 2000 or later. If
Word 2003 is your target, make sure that
1. The framework is installed
2. Then install office, and make sure to select the PIAs to install,
explicitly. You should use Microsoft's PIAs, not self-created ones

I believe you can d/l the Office XP PIAs from microsoft.com

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top