How to deploy Microsoft Word 11.0 Object Library on target machine (using installer)?

we dont want to install Ms Office on the target machine.

I am using mail merge in vb 6.0 with the help of Microsoft Word 11.0 Object Library for that I dont want to use .Net framework.

How the goal can be achieved?
LVL 12
Munawar HussainPrincipal Software EngineerAsked:
Who is Participating?
PaulHewsConnect With a Mentor Commented:
The Microsoft Word 11 Object Library is for automating Word, and resides in the WinWord.exe

There is *no way* of installing the library without installing Word.  

If you have a preexisting version of Word installed, that is a different version from the one developed with, you can use late binding to automate it.  

To use late binding, remove the reference.  Each automation type must be replaced by the type object...

Dim objWord as Word.Application


Dim objWord as Object

Now use CreateObject to instantiate your application object (everything else should be created through the application object.)

Set objWord = CreateObject("Word.Application")

This still requires Word to be installed on the target machine.

Early and Late binding in automation
You will have to remove the reference to MS Word unless you plan to install Office on the target.  You will then have to write your own mail merge procedure.  You won't be able to use Word documents, so either export in text or send to the printer.  You will also have to rewrite your templates and possibly use a different data source.


Install Office and Word, keep your reference and use your program the way it was written.
grayeConnect With a Mentor Commented:
There is both a technical and licensing issue....

I believe that the rights to distribute the Microsoft Word 11.0 Object Library is limited to those PCs that already have Word 11 installed.
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Munawar HussainPrincipal Software EngineerAuthor Commented:
Hello PaulHews,

The requirement is using mail merge with MS work object after adding reference to Microsoft Word 11.0 Object Library.

then mail merge is working fine. but on client machine "Microsoft Word 11.0 Object Library" is not registered.

Is there any way to register the dependencies>

Munawar HussainPrincipal Software EngineerAuthor Commented:
well, about licensing issue, it seems you may use Office PIAs freely with your .net projects but how to do in VB 6

Munawar HussainPrincipal Software EngineerAuthor Commented:
Thanks for quick replies
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.