User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Nov 2007
Posts: 86
Reputation: sagedavis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
sagedavis sagedavis is offline Offline
Junior Poster in Training

Dynamic content and printer pages

  #1  
Feb 28th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2006
Posts: 137
Reputation: mostafadotnet is on a distinguished road 
Rep Power: 3
Solved Threads: 7
mostafadotnet's Avatar
mostafadotnet mostafadotnet is offline Offline
Junior Poster

Re: Dynamic content and printer pages

  #2  
Mar 12th, 2008
Reply With Quote  
Join Date: Mar 2008
Posts: 55
Reputation: forzadraco is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
forzadraco forzadraco is offline Offline
Junior Poster in Training

Re: Dynamic content and printer pages

  #3  
Mar 12th, 2008
you must convert your data to pdf format before you print...
Reply With Quote  
Join Date: Nov 2007
Posts: 86
Reputation: sagedavis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 6
sagedavis sagedavis is offline Offline
Junior Poster in Training

Re: Dynamic content and printer pages

  #4  
Mar 14th, 2008
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 2:00 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC