Forum Moderators: coopster

Message Too Old, No Replies

Printing / PDF creation from a template

         

kapalselam

7:50 am on Sep 29, 2005 (gmt 0)

10+ Year Member



Hi everyone,

I am using PHP ITX template to create a page with 3 sections: header, menu (on the left) and contents. Now I want to create a print function that allows users to print somekind of article/report on the contents section of the page.

I have created different contents in different templates and call them whenever based on whatever contents I want to display.

I know that we can use javascript window.print() but that will print the whole page including header & the menu. All I want is the contents only.

What's the simple way to do this? Can javascript do this? Or is there any PDF generator clasess that able to produce pdf straight from the the templates which I have created.

Thanks,

KapalSelam

coopster

12:37 pm on Sep 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Why not just setup a "print" version of your CSS (stylesheet) which prints only the content section?