Printing a series of IFRAME items

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
korngold
Forum Newbie
Posts: 11
Joined: Wed Nov 02, 2005 11:49 am

Printing a series of IFRAME items

Post by korngold »

Hey all,

I have a calendar-style report that is generated on the fly, and now the customer wants to see multiple years at once. The easiest way for me to do this (they need it fast) is to do a for/next loop and put each of the PHP pages into an IFRAME. Is there a way (possibly through Javascript) to print each iFrame as an individual page? Printing is currently messed up page by page, which is cutting each calendar off at a different location. I was going to put this in the JS section, but I'll probably have to call the function from PHP, or create it in PHP, as I'm not sure javascript can handle this task.


Thanks in advance!
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

For forcing print breaks, use CSS: page-break-before and page-break after.
Post Reply