Edraw Viewer Component for Word provides some methods to disable the print, save and copy hotkeys.
boolean DisableSaveHotKey(boolean Disable);
Disables the Save keycodes.
Disalbe: Disables the CTRL+S, SHIFT+F12, Alt+SHIFT+F2, F12
boolean DisablePrintHotKey(boolean Disable);
Disables the Print keycodes.
Disalbe: Disables the CTRL+P, CTRL+SHIFT+F12, CTRL+F2, ALT+CTRL+I
boolean DisableCopyHotKey(boolean Disable);
Disables the Copy keycodes.
Disalbe: Disables the CTRL+C, CTRL+V, CTRL+X, SHIFT+DEL, SHIFT+INSERT, ALT+CTRL+V,
CTRL+SHIFT+C, CTRL+INSERT
You can call these methods at the DocumentOpened event.
One Response to “Disables the hotkeys in the MS Word programmatically”
Leave a Reply
You must be logged in to post a comment.
June 28th, 2010 at 10:54 am
for example:
function edword_DocumentOpened()
{
document.OA1.DisableSaveHotKey(true);
document.OA1.DisablePrintHotKey(true);
}