Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent Save in Word?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01198988
Message ID:
01205401
Views:
22
>>>Not sure about 2003 or earlier, but I think not.

This was tested for Word 2003. Works as advertised.

>>Try this.
>>
>>
o=CREATEOBJECT("word.application")
>>odoc = o.Documents.Add
>>o.CommandBars.Item("File").Controls.Item("Save As...").Enabled =.f.
>>o.CommandBars.Item("File").Controls.Item("Save").Enabled =.f.
>>o.CommandBars.Item("File").Controls.Item("Print...").Enabled =.f.
>>o.Visible =.t.
>>
>It doesn't work for Office 2007. Not sure about 2003 or earlier, but I think not. I think you'll have to intercept the messages with bindevents.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform