Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Word Doc Properties to Read-Only via OLE Automat
Message
 
À
12/02/2002 12:50:15
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00618945
Message ID:
00618958
Vues:
8
>I am creating a Microsoft Word Document via OLE Automation in my program. I want to make the Document Read-Only after it has been created and saved to the users hard drive. Can this be done via automation?
>
>THanks
>>> Wes

Wes,
If you look at the Word object under Document there appears to be a ReadOnly property that says that its writeable. I'll try it and let you know.

I've had a go and you can't do it, your best bet it to close the document when you have created it then re-open it readonly.

If what you are trying to achieve is for the file on disk to be readonly then check out attrib or the system shell functions to change a files attributes.
Caroline
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform