Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open Word Document as readonly
Message
De
11/12/2007 09:31:39
 
 
À
11/12/2007 09:19:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01274757
Message ID:
01274760
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>I am using word automation code to open word documents, example:
>
>oWord = CREATEOBJECT("Word.Application")
>oWord.VISIBLE = .T.
>oDocument = oWord.Documents.ADD(thisform.wdFile)
>
>There are many documents in different folders and we want the users to be able to pull them up and view them, but not change them. It would be very time consuming to go through all of them and save each one as read only and I was wondering if there was a way to just open the document up as read only using the code?
_________
Kevin,

this should work. They can use the SaveAs though
>oWord = CREATEOBJECT("Word.Application")
>oWord.VISIBLE = .T.

ReadOnlyMode = .t.

oWord.Documents.Open(m.thisform.wdFile, , m.ReadOnlyMode)
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform