Printing an iframe and surrounding content when iframe is larger that a printer's paper size
I have an application on one domain that displays content from another application from a different domain. The iframe gets dynamically resized similar to the method described here to prevent the iframe from having any scroll bars in it. The problem I'm having is that when the page is printed, if the iframe is bigger than a printer's paper size, content from the iframe is not printed. I would like the iframe to print 开发者_运维百科on multiple pages, not get truncated. I have set the page-break-inside css property to auto in the print css, but that didn't seem to do anything. Can an iframe span multiple pages when printing?
I don't think this can be done except maybe for a fancy "Poster" printer driver that can split huge output to multiple pages. That would require installation on the client side, of course.
Can't you print the IFrame's contents alone? Without a surrounding page?
精彩评论