<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<commands>
<command idMso="FileNewDatabase" enabled="false"/>
<command idMso="FileCloseDatabase" enabled="false"/>
<command idMso="ApplicationOptionsDialog" enabled="false"/>
<command idMso="FileOpenDatabase" enabled="false"/>
<command idMso="FileExit" enabled="false"/>
</commands>
<ribbon startFromScratch="true">
<tabs>
<tab idMso="TabHome" visible="true" />
<tab idMso="TabInsert" visible="true" />
<tab idMso="TabPageLayoutWord" visible="true" />
<tab idMso="TabReferences" visible="true" />
<tab idMso="TabMailings" visible="true" />
<tab idMso="TabReviewWord" visible="true" />
<tab idMso="TabView" visible="true" />
</tabs>
<officeMenu>
<control idMso="FileOpen" visible="false" />
<control idMso="FileNew" visible="false" />
<control idMso="FileNewDatabase" visible="false"/>
<control idMso="SourceControlCreateDatabaseFromProject" visible="false"/>
<control idMso="FileOpenDatabase" visible="false"/>
<control idMso="FileSave" visible="false"/>
<control idMso="ConvertDatabaseFormat" visible="false"/>
<control idMso="FileSaveAsMenuAccess" visible="false"/>
<control idMso="FileManageMenu" visible="false"/>
<control idMso="FileSendAsAttachment" visible="false"/>
<control idMso="MenuPublish" visible="false"/>
<control idMso="FileServerMenu" visible="false"/>
<control idMso="FileCloseDatabase" visible="false"/>
<button idMso="FileCompactAndRepairDatabase" visible="false"/>
<button idMso="ApplicationOptionsDialog" enabled="false"/>
</officeMenu>
</ribbon>
</customUI>
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
1) When using the DsoFramer Control provided by, but not supported by, Microsoft; the Office button is removed. This indicates that there IS some way to do it, but that it may not be a very simple or straight-forward way.
2) There doesn't appear to be a way to do it using the custom user interface xml that is stored within the docx file.
3) The recent documents also don't appear to be able to be removed or disabled from the xml embedded in the docx file.
4) A work around (although a dangerous one) is available for instances of word that are embedded in applications. You can simply save the recent documents, set the max number of recent documents to zero (effectively removing them), and then restoring recent documents when you are done using the instance of word. This works well, but is not entirely save because if an application is terminated early it may lead to losing the users recent document list, and to leaving it set to not saving the recent documents)