•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,101 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,469 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 380 | Replies: 3
![]() |
•
•
Join Date: Nov 2007
Posts: 86
Reputation:
Rep Power: 1
Solved Threads: 6
Hi all,
I have been working on a PHP based application where a user would be allowed to print out specific, yet dynamic information.
I am using a different style sheet for the print page, but I am having a slight issue.
At times some of my stuff is chopped off between pages.
Is there some function, method, or just concept that you all use to smooth all of this out?
Basically, I want to force the point that if there is a word that will be cut off, let's move the line to the next page....
Any thoughts?
Thanks
Sage
I have been working on a PHP based application where a user would be allowed to print out specific, yet dynamic information.
I am using a different style sheet for the print page, but I am having a slight issue.
At times some of my stuff is chopped off between pages.
Is there some function, method, or just concept that you all use to smooth all of this out?
Basically, I want to force the point that if there is a word that will be cut off, let's move the line to the next page....
Any thoughts?
Thanks
Sage
Use Page Breaks in your style-sheet.
http://www.javascriptkit.com/dhtmltu...agebreak.shtml
http://www.w3schools.com/css/pr_print_pageba.asp
http://www.htmlgoodies.com/beyond/cs...le.php/3470341
600) 1(_)[|<.
http://www.javascriptkit.com/dhtmltu...agebreak.shtml
http://www.w3schools.com/css/pr_print_pageba.asp
http://www.htmlgoodies.com/beyond/cs...le.php/3470341
600) 1(_)[|<.
•
•
Join Date: Nov 2007
Posts: 86
Reputation:
Rep Power: 1
Solved Threads: 6
That's great information.
Unfortunately, converting to PDF first is not a viable way to go with this one. We use a PHP pdf generation system, but, as that is just as dynamic as the pages that our users are printing anyway, the issue has to be figured out before it is sent to the printer, or before it is sent to pdf.
The problem with the pdf stuff is that it also needs to be formatted a certain way with pdf.
I understand printing it in my browser as a pdf first would be helpful if I wanted to make pagebreaks in a certain place for a static site, but to do so on a dynamic site would be a bit, weird.
I wonder if seeting the width to 7 inches and the height to 7 inches would force information to jump to the next page?
Sage
Unfortunately, converting to PDF first is not a viable way to go with this one. We use a PHP pdf generation system, but, as that is just as dynamic as the pages that our users are printing anyway, the issue has to be figured out before it is sent to the printer, or before it is sent to pdf.
The problem with the pdf stuff is that it also needs to be formatted a certain way with pdf.
I understand printing it in my browser as a pdf first would be helpful if I wanted to make pagebreaks in a certain place for a static site, but to do so on a dynamic site would be a bit, weird.
I wonder if seeting the width to 7 inches and the height to 7 inches would force information to jump to the next page?
Sage
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- pop ups are back (Viruses, Spyware and other Nasties)
Other Threads in the PHP Forum
- Previous Thread: IE6/IE7 unexpectedly drops the PHP Session ID cookie (PHPSESSID)
- Next Thread: Best CMS for database driven site


Linear Mode