print table view

Does anyone know how to print a table view without the whole window printing? If you choose Print from the File menu in the program it prints the whole window.

thanks,

gecko

This thread has a good bit of discussion about printing, though it refers to a webview. The only significant change is what you call the print: method of. You can also see how I print the table in one of my apps here, around line 1535 Those should get you on the right track.