Is that because you're opening the report in print preview?
When I use the print button on my reports, it is in Report View. The button works for me in this view (Access 2007). All you need to do is add the above code to the on click event when you build the print button in a form, before copying and pasting on to the report.