yosibeck Posted July 18, 2008 Share Posted July 18, 2008 I have a genealogy website with a 10,000 person searchable database. I put it on the web with an opensource application written in PHP that makes it possible to locate any name in the database and dynamically create ancestor or descendant reports. I've jazzed it up and it works great. My problem is that once a long report is dynamically created and displayed on the screen, printing it the regular way with the browser doesn't work cause that does only print the report as far as fits one page and that's it. There it gets cut off. This is in spite of the fact that in Source View in Explorer the whole report is shown. I've looked around on the web and tried the window.print() solutions but that doesn't help either. Please have a look at my site beck.org.il/humotree Look up, let's say, Jan Bos , display the descendant report and see how it looks in Print Preview. Maybe a hint as to what goes wrong can be found in the fact that the header menu of the webpage gets printed partly overlapping the print of the generated report as if both are handled separately. The header menu then gets printed on the second page again, but there printing ends. I don't know if this problem is created by the dynamical PHP rendering of the pages or some other problem, but I've never encountered it before. Thanks, Yossi Beck Link to comment https://forums.phpfreaks.com/topic/115423-printing-a-dynamically-created-webpage/ Share on other sites More sharing options...
kenrbnsn Posted July 18, 2008 Share Posted July 18, 2008 This looks more like a CSS problem than a PHP problem. Ken Link to comment https://forums.phpfreaks.com/topic/115423-printing-a-dynamically-created-webpage/#findComment-593350 Share on other sites More sharing options...
unkwntech Posted July 18, 2008 Share Posted July 18, 2008 PHP would not cause the page to not print properly. PHP is all handled on the server so it does not affect the browser. It is most likely a JavaScript or CSS problem. Take a look at this to see if there are any bit CSS issues: http://jigsaw.w3.org/css-validator/validator?uri=PUTYOURADDRESSHERE&profile=css21&usermedium=all&warning=1&lang=en Link to comment https://forums.phpfreaks.com/topic/115423-printing-a-dynamically-created-webpage/#findComment-593356 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.