Information générale
Catégorie:
COM/DCOM et OLE Automation
>Has anyone done that:
>I am creating word doc in Visual FoxPro and let the user view/modify them. But I need to know (in Visual FoxPro) when the user actually modfied the doc)
>I am thinking of creating a semophore file like MyDocName.sem which if present Visual FoxPro can use to know the doc has been modified and then delete. I have never attempted VBA, however.
>
Your best bet is to use Word's events. If your VFP app will be running when they modify the document, go with the solution Cetin outlined. If there's a chance they'll close your app, but keep working in Word, you need to use a Word add-in to handle this. I wrote an article about what's involved. It was in FPA in 10/02. I also showed the code at DevTeach and DevCon last year.
Tamar
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement