Masoud Mustamandi
Masoud Mustamandi

Reputation: 498

window.print not printing all pages in IE

I have a page that contains iframes, i want to print them all using window.print() it works in chrome but not working in IE, it just prints the first page not the rest.this is the exact page that i want to print![][1] it just prints out the first page not other 5 pages. any help would be much appreciated!

Upvotes: 0

Views: 1275

Answers (1)

user3235186
user3235186

Reputation:

Not clear with your situation but to help, in IE window.print will always try to print the browser window and not the iframe window you are in unlike chrome and firefox. To print corresponding iframe window in IE, do something like this.

window.top.document.getElementById("iframe-id").contentWindow.focus(); window.top.document.getElementById("iframe-id").contentWindow.print();

Hope this helps.

Upvotes: 1

Related Questions