- Where Developers Learn, Share, & Build Careers


According to this code, I am using the following code, the new window will open with the source of the URL. But when printing, it is showing: Empty printing: Before loading the page load correctly, the page URL is also: empty but it changes in the given URL.

  var url = "http: // localhost: 8080 / recruitment / docs / Kenyeth% 20_1340800082258 / Kenyighth% 20_sreem_1340800082258.pdf"; Var printwindow = window.open (url, '_blank', 'fullscreen = yes'); // setTimeout ('2000); Printwindow.focus (); Printwindow.print ();    

Have you tried:

  printwindow .onload = function () {printwindow.focus (); Printwindow.print (); };    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -