To give an example, I had a pop-up fixed sized dialog that showed the trip itinerary. I wanted to be able to print out just the itinerary without any of the header, footer, etc. You can see in the screenshot below this working in action.
To achieve the above first create a DIV with that will hold all of the content that you wish printed and set its class to printcontent.
Two functions are called on these event changes, beforePrint() and afterPrint() - these are shown below.
[Read More and Comment]