proper way to cancel IE menuitem ...

Add-in Express™ Support Service
That's what is more important than anything else

proper way to cancel IE menuitem ...

Posts: 38
Joined: 2014-09-03
It works when setting 'e.Cancel=true;' within IEModule_OnBeforeExecute event (when e.CommandId==6) to supress IE main window's 'Print' menuitem functionality. But also found that, doing that, the underlying web page's javascript's windows.print() call is also suppressed!

Why? And, how to just supress IE windows print menuitem, and in the meantime, not to interfere the shown web page's javascript windows.print() functionality under that case?
Posted 15 May, 2015 05:19:12 Top
Andrei Smolin

Add-in Express team

Posts: 14690
Joined: 2006-05-11
Oh, great!

Actually, this is the same command whether you issue it in code or via the commandbar button. You can check if the context differs when you send it from code: check what other commands are given before the Pronit command occurs .

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 15 May, 2015 07:01:40 Top