I have tried working on the following lines:-
$(document).ready(function () {
$('input').attr('readonly', true);
window.open("", "_self");
window.print();
window.close();
});
The above code enables to open the print dialog but prompts the user to click Print.
I have researched quite a bit on it and the nearest i got was a vb script which achieves the same.
Can someone point me in the right direction? Thanks in advance.