Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Catching events from word, multiple versions

Status
Not open for further replies.

boflexson

Programmer
Oct 16, 2001
74
0
0
US
Here's my scenario and dilema.

I have created an ActiveX control that executes inside of a web page.

Inside this ActiveX control I open MS Word and feed it a downloaded document. Then on the BeforeSave event I save the document and post it to another web page.

the Abbreviated code looks like the following:
Private Withevent objWord as Word.Application
....
Set objWord = New Word.Application
'Open Document / make visible etc.
....
OnBeforeSave Event.
Document.Save, post etc...


the problem lies in that I have Word 2002 (10..) on my development machine. Everything works great on machines that have Word 2002 on them.

If we run the web page, and hence activeX control on a machine with Word 2000 (9..) it, of course, does not work.

Is there a way that I can late bind Word, so it attaches to whatever version of Word they have, and still catch events?
Something like the following
Private Withevent objWord as Object
Set objWord = CreateObject("Word.Application")

Or if I referenced and compiled against Word 2000 (9..) then would it work if Word 2002 (10..) is installed?

Thanks in advance for any insight or help.

-Adam T. Courtney
-Infinity Technology, Inc.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top