3 Replies Latest reply on Mar 29, 2011 5:45 PM by CaHbKa.Z

    How to print content of new window? [javascript]

    CaHbKa.Z

      Hi!

       

      I'm want to print content of new window - how it do?

       

      My JS code (worked in browser success):

      myWin = open('', 'displayWindow', 'width=800,height=600,status=no,toolbar=no,menubar=no,location=no,directories=no');
      myWin.document.open();

      myWin.document.write('<html><body><h1>Print it!</h1></body></html>');

      myWin.document.close();

      myWin.print();

       

      I tried to work with "window.runtime.flash.printing.PrintJob", but I can't do anything working...

       

      Help me, what I need to do...