Frank 177 Posted March 8, 2013 Report Share Posted March 8, 2013 Hey guys and gals, Anyone figure out how to print out of ubot? I'm presenting a page of information using the load html command and I'd like to present a print button somewhere to allow it to be printed out. I did try some code within the load html but no dice. <html> <head> <script> function printpage() { window.print() } </script> </head> <body> <input type="button" value="Print this page" onclick="printpage()"> </body> </html>Thanks, Frank Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted March 8, 2013 Report Share Posted March 8, 2013 Ubot is blocking the popup window.. Its not working even if you load this page http://www.htmlgoodies.com/beyond/javascript/article.php/3471121/Print-a-Web-Page-Using-JavaScript.htm in ubot then manually click the print button which usually working on normal browser. Quote Link to post Share on other sites
gavind 6 Posted March 9, 2013 Report Share Posted March 9, 2013 Thanks. Seems a good work around. I'm also looking to get everything automated. I hope someone comes up with an idea. Quote Link to post Share on other sites
Fabier 11 Posted March 14, 2013 Report Share Posted March 14, 2013 These commands look interesting: http://technet.microsoft.com/en-us/library/cc775908%28v=ws.10%29.aspx#BKMK_1 Might help you out. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.