I developed a VB.Net 2008 application that automates Microsoft Word 2003. We are migrating to Word 2010 and I need to know how to control what commands are available to the operator.
The application either hides a toolbar or disables a command to prevent the operator from using it. For example, the application hides the Standard toolbar which contains the Save button we don't want the operator to use. A custom macro was written to save the document and perform necessary updates to the database. I also don't want the operator to use Word's X button to close a document so I programmatically disable it when the document is opened. Another macro was written to close the document and perform updates to the database.
It is imperative the operator use the custom commands written specifically for this application to Save and Close a Word documents. These custom commands are defined in the document's Word template and do appear in the Add-Ins Ribbon Tab in Word 2010.
I would like know if there is a way to programmatically hide or disable the File Ribbon Tab or the commands within the Tab and how to disable the Close(X) button when the application opens a document in Word 2010. The program code to do this for Word 2003 doesn't work in Word 2010.
I would also like to know if there is a way to show the custom commands, i.e. macros, that appear in the Add-Ins tab could be placed in a separate toolbar under the Ribbon. This toolbar would behave the same way as the Quick Access Toolbar; always visible regardless of which Ribbon Tab is selected.
Thank you very much in advance, Curt