Have you ever want the context
menus in Microsoft Office just completely disappear? Edraw
Office Viewer Component can easily enable or disable right
click context menus in MS Word and Excel. 1. You can add DisableStandardCommand method in the WindowBeforeRightClick event. It will prevent the MS word and MS Excel to pop up the right click context menus.
enum CommandType{ cmdTypeSave = 0x00000001, cmdTypeClose = 0x00000002, cmdTypePrint = 0x00000004, cmdTypeRightClick = 0x00000008, cmdTypeDoubleClick = 0x00000010, cmdTypeIESecurityReminder = 0x00000020, }CommandType;
2. Or you can call the DisableViewRightClickMenu method to remove the view right click menu directly. Use the method in the DocumentOpened event.
function OA_DocumentOpened() Hide or Disable the MS Word Pop up menu While Right Click on the Active Document. |
| ||||||||||||||||||||||
