S
Santosh Patel
Guest
Some Javascript code that might serve your purpose. We are basically overriding the rbf_openPopup function to return the popup window handle and do a print directly. The code should be added to the application header and footer if you want it across your application or on page specific headers (say to only do print receipts automatically) var printReceipts = function(query) { var popup = window.open('../m/popup.jsp?'+query,'pageView','WIDTH=650, HEIGHT=600, RESIZABLE=YES, SCROLLBARS=YES, TOOLBAR=YES, MENUBAR=YES, LEFT=20, TOP=20'); popup.focus(); popup.print(); return false;} var toReplace = $('i.icon-print').parent().attr('onclick').replace('rbf_openPopup','printReceipts'); $('i.icon-print').parent().attr('onclick',toReplace);
Continue reading...
Continue reading...