How to capture "Print Tab" click event at the backstage in Outlook 2010 ? -


i want capture click events in "tabprint" @ backstage of outlook 2010.

followint have done far

i have defined custom ui in xml following. have directed every event 1 method (which onprintclick)

 <?xml version="1.0" encoding="utf-8" ?> <customui xmlns="http://schemas.microsoft.com/office/2009/07/customui" onload="ribbon_load">   <commands>         <!-- mail print related -->     <command idmso="fileprint" onaction="onprintclick"/>     <command idmso="fileprintcustomrange" onaction="onprintclick"/>     <command idmso="fileprintpreview" onaction="onprintclick"/>     <command idmso="fileprintquick" onaction="onprintclick"/>     <command idmso="groupprint" onaction="onprintclick"/>     <command idmso="groupprintpreview" onaction="onprintclick"/>     <command idmso="groupprintprotectedview" onaction="onprintclick"/>     <command idmso="groupprintsettings" onaction="onprintclick"/>     <command idmso="printcategory" onaction="onprintclick"/>     <command idmso="printdialogaccess" onaction="onprintclick"/>   </commands> </customui> 

the onprintclick method located in connect class in solution. following parameters accepted method.

 public void onprintclick(iribboncontrol control , ref bool cancel)     {         messagebox.show("print !");     } 

when execute code, not capture of the click events have defined. there doing wrong here ? appreciated.

the command tag not play role in case of backstage ui controls. can repurpose controls on ribbon (not backstage). see temporarily repurpose commands on office fluent ribbon more information.

a possible solution consider hiding built-in ui , rebuilding custom commands. read more backstage ui in following series of articles in msdn:


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -