Window Title / Document Headings

I need to be able to print document information at the top of each printed page. Whilst I can do this by sticking the information I need in the document header, this of course impacts on the tab displayed on the workspace. Does anyone know of any way I can programmatically set the document header so that if the document is being printed it gives a different value to that displayed on the workspace tabs?