Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Allow user to modify a Word document?
Message
De
12/01/2009 09:53:51
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01372571
Message ID:
01372780
Vues:
44
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform