This example demonstrates the Page Media capability of the Feature Set #1 provided by MeadCo's MaxiPT print template.
Invoke Print Preview here or from IE's native controls to see it in action. You can view the source of this example here.
Page Media
This functionality allows you to set most of the Feature Set #1 printing capabilities provided by MeadCo's MaxiPT print template. The Page Media functionality can be set from CSS as follows:
<style> @page :first{ header: "<div style='border: thin inset threedface; font: 15pt Comic Sans MS; background: lightskyblue; color: darkblue'> <center><i>--- Header for <b> first </b> page ---</i> </center></div>"; footer: "<div style='border: thin inset threedface; font: 15pt Comic Sans MS; background: lightskyblue; color: darkblue'> <center><i>--- Footer for <b> first </b> page ---</i> </center></div>"; extraFooter: "<div style='border: thin inset threedface; font: 15pt Comic Sans MS; background: lavender; color: orchid'><center> <b>Extra Footer</b> for the First Page </center></div>"; headerHeight: 50; footerHeight: 50; extraFooterHeight: 50; } </style>
<style> @page :all{ header: "<div style='border: thin inset threedface; font: 15pt Comic Sans MS; background: antiquewhite; color: darkgreen'> <center><i>--- Header for page <b> &p </b> ---</i> </center></div>"; footer: "<div style='border: thin inset threedface; font: 15pt Comic Sans MS; background: antiquewhite; color: darkgreen'> <center><i>--- Footer for page <b> &p </b> ---</i> </center></div>"; pageRange: ""; printingPass: "all"; mirrorMargins: true; headerHeight: 50; footerHeight: 50; leftMargin: 1in; rightMargin: .5in; topMargin: 20mm; bottomMargin: 20mm; } </style>