Demo: print image with a little JavaScript

[code]var imageSrc = "data:image/png;base64,"+ggbApplet.getPNGBase64(5, false);[br][br]var props = ggbApplet.getViewProperties()[br][br]var imgHtml="<img style='padding:50px 50px;display:block;margin-left:auto;margin-right:auto;width:500px;height:auto;' src='"+imageSrc+"'></img>";[br][br]var WindowObject = window.open('', 'PrintWindow', 'width=1200,height=800,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes');[br][br]var strHtml = "<html>\n<head>\n <link rel=\"stylesheet\" type=\"text/css\" href=\"test.css\">\n</head><body onload='window.print();window.close()'><div style=\"testStyle\">\n" + imgHtml + "\n</div>\n</body>\n</html>";[br][br]WindowObject.document.writeln(strHtml);[br]WindowObject.document.close();[br]WindowObject.focus();[/code]

Information: Demo: print image with a little JavaScript