ActiveX cannot create object

J

Jerry

One of my customers has a problem creating reports in Word. After talking to
him there seems to be only one line of code that can cause this problem:
Set moWord = CreateObject("Word.Application")

He has Word installed and can create documents in Word.

Is there anything that I can advise him to do besides reinstalling Word?

tia
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?SmVycnk=?=,
One of my customers has a problem creating reports in Word. After talking to
him there seems to be only one line of code that can cause this problem:
Set moWord = CreateObject("Word.Application")

He has Word installed and can create documents in Word.
If you search the Knowledge Base on the MSDN site you'll come up with some
hits. The one that comes closest to what I recall with this is

http://support.microsoft.com/default.aspx?scid=kb;en-us;319844

When the message crops up when automating Word, it usually means there's a
missing object library reference missing. For example, you developed the
project in one version of Word and it's being used on a different (usually but
not necessarily earlier) version. The best way to avoid this is to use late
binding.

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 :)
 
H

Helmut Obertanner

Hello Jerry,
maybe you have to create your Active-X Control as "Save for Scripting")
It's an additional Registry Setting, wich by default isn't created from VB.

Another problem could be that you try to load your Active-X in a Browser.
Here the Security Settings could deny creating Applications on the client.


--
Freundliche Grüße / with regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de


.... and IT works!
 

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