I have a webpage with multiple iFrames e.g. 6 and I'd like to be able to print 2 of those frames as one call rather than grabbing the contentWindow of each frame and then calling:
parent.iFrame1.focus();
parent.iFrame1.print();
parent.iFrame2.focus();
parent.iFrame2.print();
as it prints the contents in two separate print preview windows in the browser.
I tried the following but none really give me what I'm looking for or work for me (i.e. the content is truncated)
Is it possible to do or am I beating a dead horse?
I've also tried grabbing the html from the iframes and writing it to a new document but feel that's a bit heavy handed. Also there are multiple css and script files etc that would need to be merged to present one cohesive page.
Any answers would be greatly appreciated!
Potential solutions I've tried that haven't worked so far:
Wait for html to write to window before calling window.print()
Print preview from multiple iframes?
https://graciesdad.wordpress.com/2007/04/19/all-in-one-printing-from-multiple-iframes/