Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Allow user to modify a Word document?
Message
From
12/01/2009 09:53:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01372571
Message ID:
01372780
Views:
36
>Thanks Naomi. I've read that thread many times over the past couple of months (and Marcia's white paper as well.) The concern in both of those cases was to know WHEN the user closed Word. I'm hoping to PREVENT him from closing Word. Still, it should work if the events exposed in ApplicationEvents2 allow me to 1) to intercept the user's action at appropriate places, and 2) return control to VFP. The class definition requires the guid specific to the version of word that is currently running. The application supports Word versions 8 through 12 and some workstations do have more than one version installed. Obviously, the version number is known at the point of instantiation, but how do I determine (or calculate) the guid? I thought I'd seen something on UT about that but can't find it now and a Google search was fruitless as well.
>
>As an update, I just found a Microsoft support article outlining instances where the calculated guid would be incorrect, so obviously I do need to search the registry for it.

"1) to intercept the user's action at appropriate places, and 2) return control to VFP"

It does 1 and 2.

"The class definition requires the guid specific to the version of word that is currently running."
That is not true. You simply compile it uisng the olb you have on your machine (use Object browser in other words to create that handler code and edit).

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform