Jump to content

Printing a dynamically created webpage


yosibeck

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.