We have another issue in which we need your assistant: we need to configure the upper menu bar in MS Word like delete, Save, Open … buttons from this bar (we need to hide such buttons from the end user) and we need to control it from our application.

Also we would like to display print dialog (windows) box when we call Print API, as currently when we call print, it prints immediately without displaying the print window or dialog. 

Your fast response is highly appreciated.

function disableBtn(){

document.OA1.LicenseName = “”;

document.OA1.LicenseKey = “”;

var oDoc = document.OA1.ActiveDocument;

var counter = oDoc.ActiveWindow.Application.CommandBars.Count;

var str = ”;

var subStr = ”;

for(var i = 1; i <= counter;i++){

var name = oDoc.ActiveWindow.Application.CommandBars(i).Name;

var count_control=oDoc.ActiveWindow.Application.CommandBars(i).Controls.Count;

for(var j=1;j<=count_control;j++){

var caption = oDoc.ActiveWindow.Application.CommandBars(i).Controls(j).Caption;

caption = caption.replace(‘&’,”).toLowerCase();

if(caption == ‘save’) {

oDoc.ActiveWindow.Application.CommandBars(i).Controls(j).Enabled=false;

alert(name);

}

}

}

}