Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open Word read/only, prevent save as, release variable
Message
From
01/08/2007 08:09:32
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01244081
Message ID:
01245126
Views:
30
>>The threads you pointed to required changing the word documentation (by a least adding a password) which I prefer not to do. Thanks for your help.
>

Thanks for looking, for now I will just tell user that they should only use page setup, print and exit.

>Well, unfortunately this can not be a good solution:
>
>oWord = createobject("Word.Application")
>
>lcFile = getfile('DOC')
>if empty(lcfile)
> return
>endif
>with oWord
> .Documents.Open(lcFile)
> *.Application.CommandBars("Standard").Controls("Save").Enabled = .F.
> .Application.CommandBars("File").Controls("Save As...").Enabled = .F.
> .visible = .t.
>endwith
>
>since we need to be able to restore it back before an attempt to close Word file.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform