Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word object
Message
De
18/11/1998 07:35:46
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
18/11/1998 07:18:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00158668
Message ID:
00158670
Vues:
19
>I am using createobject to create an instance of Word, into which I'm sending data from VFP5. This document is printed and saved by the user. However the user should be able to view these documents at a later date, but should not be able to edit them.
>
>Does anyone know the syntax for programatically setting the password option in the Word document itself, as I create the Word object.
>
>These documents are of a highly sensitive nature, so it is important to protect these documents from other people outside of the company, not just the users.
>
>Any help on this matter would be much appreciated.
>
>regards
>
>Derek

Hi, the Word document object has a WritePassword property, so

loDoc.WritePassword = "whatever"

before you save the document should work.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform