PDA

View Full Version : [SOLVED] Disable Send by Email



fredlo2010
10-30-2014, 11:13 AM
Hello everyone,

I am trying to disable the ability for the user to send a workbook by mail. I hid the Save & Send tab from the File menu; but this does not prevent the users from sending an email if they have a shortcut somewhere else.

Any ideas?

Thanks

mancubus
10-30-2014, 01:37 PM
hi.
you can customize the ribbon.
but what if the user "right click"s the file, clicks "send to" and "email recipient" in windows explorer?
or "share" tab, "send" group, "email" in windows explorer (win8)?

fredlo2010
10-30-2014, 02:06 PM
Hi Thanks,

* The file is in a location that the users never send workbooks from.
* I have added a custom ribbon to hide the "Share" tab.
* I have also disabled the save as so they have to save it through an specific button.



<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <backstage>

<task id="SendUsingEmail" onAction=""/>


<tab idMso="TabShare" visible="false"/>
</backstage>


</customUI>

Thanks

fredlo2010
10-31-2014, 12:33 PM
Hello,

I have been reading about this and what I wanted to do; which is was to override the default task if a button, is not possible.


It is not possible to override these commands from the custom UI XML markup or by using the object model. Using theDocumentBeforeSave event is one alternative, but using that doesn't really change the functionality of the individual commands that show up in the Change File Type gallery in the Backstage.
A better solution would be to consider hiding the built-in UI and rebuilding it fully with custom commands.

http://msdn.microsoft.com/en-us/library/office/ee691833(v=office.14).aspx

This is a closed threat.

Thanks a lot for the help.