You would have to grab the desired elements and by some DHTML functionality and pass them to a new blank document, which you have opened in a new window or in a frame. Perhaps it's even possible to do this in a hidden <iframe>.
Then you only have call the window.print() method of that new document.
Comment