ClientPrinters

Top  Previous  Next

ClientPrinters combo box lists the printers defined on the client computer where the web browser runs. ClientPrintersApplet element should also be used in the same page along with this element.

If the client printer list needs to be used outside the ClientPrinters combo box, the methods of PrintMgr  class in the Reporter.js can be used as follows.

 

PrintMgr.queryPrinterList({callbackFunc:CallMe});          

                                                           

function CallMe(prm, printerList) {                        

for (var i = 0; i < printerList.Count; i++) {            

var printerInfo = printerList.getPrinterInfo(i);       

alert("Printer Name    : " + printerInfo.name);      

alert("Printer Id      : " + printerInfo.id);        

alert("Default Printer : " + printerInfo.isDefault); 

}                                                        

};