How can I send a generated image to the (physical) printer from javascript in IE11?
The print command doesn't work. On right click - the "Save As" & "Print Target" are greyed out, but the "Print Picture" is available. Can I invoke "Print Picture" from javascript?
var data = canvas.toDataURL('image/png');
var image = new Image();
image.src = data;
var mywindow = window.open('', 'my div', 'height=400,width=600');
mywindow.document.write('<html><head><title>Title</title>');
mywindow.document.write('</head><body >');
mywindow.document.write('<img src="' + data + '" />');
mywindow.document.write('</body></html>');
mywindow.print();