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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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.
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>

Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Munawar HussainPrincipal Software EngineerAuthor Commented:
Thanks for quick replies
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.