Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems intercepting Word Events
Message
From
19/05/2009 06:40:52
 
 
To
19/05/2009 03:55:00
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01400371
Message ID:
01400577
Views:
52
... and this code for versions earlier than 2007 (I have not tested further back than Word XP):
DEFINE CLASS WordEvents as Custom
IMPLEMENTS ApplicationEvents2 IN "Word.Application"


You cannot rely on this syntax working. The only time it works is when the machine that it is running on has only ever had one version of Word installed on it. The minute a new version is installed, this code will break.

Or is it just me that does not like to pointlessly duplicate code?

I do not think that you are so unique in that respect <s>.
Previous
Reply
Map
View

Click here to load this message in the networking platform