This is a very elegant solution but I do have one problem: although the final print generated to either the printer or to preview renders the headers/footers correctly the view of the pages in the print preview dialog shows the headers/footers upside-down.
Is there perhaps a solution?