Error opening word.application object - TechRepublic
General discussion
September 19, 2002 at 01:48 AM
rajvelu

Error opening word.application object

by rajvelu . Updated 23 years, 10 months ago

I have written a program to print a word document. it works fine on my system. but it does not work on any other system. I have a tried to execute this program on all system with same configuration with word 2k installed on it.(it gives a error “activex not able to create object”)
Could anybody give me a solution to this

printfilename “c:/default.doc”
set wordobj = createobject(“word.application”)
wordobj.Application.Visible = false
wordobj.Documents.Open printfilename
wordobj.Application.PrintOut
wordobj.ActiveDocument.Close
wordobj.Application.Quit
Set wordobj = Nothing

This discussion is locked

All Comments