F
foomonkey
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
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