Hide the office 2013 ribbon file menu
Posted by office viewer on May 6th, 2014The new version 8.0.0.430 can hide the file menu items for the ms office 2013 with the following settings.
function OA1_BeforeDocumentOpened()
{
document.OA1.DisableFileCommand(1, true);//wdUIDisalbeOfficeButton
document.OA1.DisableFileCommand(2, true);//wdUIDisalbeNew
document.OA1.DisableFileCommand(4, true);//wdUIDisalbeOpen
}
More options:
wdUIDisableOfficeButton = 0x00000001,
wdUIDisableNew = 0x00000002,
wdUIDisableOpen = 0x00000004,
wdUIDisableUpgradeDocument = 0x00000008,
wdUIDisableSave = 0x00000010,
wdUIDisableSaveAs = 0x00000020,
wdUIDisableSendAsAttachment = 0x00000040,
wdUIDisableClose = 0x00000100,
wdUIDisablePrint = 0x00000200,
wdUIDisablePrintQuick = 0x00000400,
wdUIDisablePrintPreview = 0x00000800,
wdUIDisableSaveAsMenu = 0x00001000,
wdUIDisablePrepareMenu = 0x00002000,
wdUIDisablePermissionRestrictMenu = 0x00004000,
wdUIDisableSendMenu = 0x00008000,
wdUIDisablePublishMenu = 0x00010000,
wdUIDisableServerTasksMenu = 0x00020000,
wdUIDisableCopyButton = 0x00040000,
wdUIDisableCutButton = 0x00080000,
Recent Comments