In order for the custom header to print out as it appears on the report (in the browser), "print background colors" must be selected in the browser settings.
In Internet Explorer, go to Tools > Internet Options and select the Advanced tab. Scroll down to Printing and check the box next to Print background colors and images.
In Firefox, go to File > Page Setup and check the Print backgrounds option.