window.print() prints blank page
===


I get blank page while printing. The border(it may be the frame) is printed. But not the content inside the frame. if we manually print the new page it is getting printed correctly. Why this happen?

    var printwindow = window.open('', '', 'fullScreen=no');
    printwindow.document.write('<iframe id="docPrint" onLoad="window.print()" width="100%" height="100%" src="http://localhost:8080/hiring/docs/Keneth _1340800082258/Keneth _resume_1340800082258.pdf"></iframe>');

