Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent Save in Word?
Message
De
26/02/2007 20:14:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01198988
Message ID:
01199020
Vues:
26
>The biggest problem is how to get control back to the application to complete processing.
>
>However, I haven't been able to figure out how to attach a name to a document under automation either. The error message indicates that .Name is read-only. It seems like the name can only be changed using the dialog that appears when you try to save or to close the application. I'd really like to suppress that dialog entirely. In fact I saw a thread earlier that showed how to do that but I can't find it now...

To do the Automation, you need an object reference to the document. If you keep this object reference somewhere in your VFP program, I think you should be able to continue working with it, even after the user saves. However, if the user closes the document, the object reference would get lost.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform