Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable word's save toolbar button and file menu button
Message
From
20/03/2001 02:12:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00485474
Message ID:
00486768
Views:
22
oWord.NormalTemplate.Saved = .t.
should work. I never tried.
Cetin

>Hi Cetin,
>
>I read and was intrigued by your email. Thank you for all of your time!
>You are correct. Just opening the document as read-only satisfies most of my requirements. You see, I allow the user access to a read-only, temporary copy of an actual document that I delete when the automation session is over. That is why I wanted the FILE|SAVE and SAVE toolbar button to be disabled when this temporary document is open. I did not want the user to feel as if he/she had the ability to modify the document. It is ok to "save as" a different file name but I don't what the original document altered in any way. So once again your suggestions work great. If the user does modify the temporary document in any way, WORD will prompt for a save but because it is open in read-only the save is actually a "save as" (with the appropriate "save as" file dialog). But, I am having one last problem. As you mentioned in your email, when you disable menu selections or toolbar buttons you are going to be prompted by WORD to save the changes to normal.dot. WORD prompts me if I want
>to make changes to normal.dot immediately after I hit the close button. That is the rub. I don't know how to close up a visible, active WORD after making changes to the toolbar buttons, etc, without storing those changes in normal.dot. I don't know how to close WORD without being prompted to save the changes to normal.dot.
>
>Dr. G. (Neil)
>
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform