Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / May 2005

Tip: Looking for answers? Try searching our database.

Unable to hide Save and Save As menu items

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
foomonkey - 27 May 2005 15:19 GMT
I have an InfoPath form that I want to use the Submit feature on.
Therefore, I do not want the users to have the Save and Save As menu
items available. I found code to disable these items like this:

var objCommandBars = Application.ActiveWindow.CommandBars;
var myControls = objCommandBars.FindControls(1, 748);
for(var enumerator = new Enumerator(myControls); !enumerator.atEnd();
 enumerator.moveNext())
{
 enumerator.item().Enabled = false;
}

I put this code in the XDocument::OnLoad event. Unfortunately, this
does not seem to do anything.

Any ideas?

Thanks.
Andrew
darko - 27 May 2005 15:32 GMT
In the Menu -  Tools->Form Options... -> Open and Save (tab)
uncheck the save and save as.. check box

> I have an InfoPath form that I want to use the Submit feature on.
> Therefore, I do not want the users to have the Save and Save As menu
[quoted text clipped - 15 lines]
> Thanks.
> Andrew
foomonkey - 27 May 2005 19:02 GMT
What do you know. That worked! Makes you wonder why long, technical
articles are written on how to do this with code.

Thanks!
Andrew

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.