September 2011
Beginner
1608 pages
68h 25m
English
Chapter 16 shows you how to create a print.css file for SharePoint 2010 sites. In addition, Chapter 15 shows you how to add a print button to page layouts. You can apply the same concept to a SharePoint 2010 master page, which makes the print command available across all pages in the site, referencing the master page.
To add a print command to a master page, perform the following steps.
1. In the sample.master page, place the following JavaScript between the <head> tags in the master page:
<script type="text/javascript">if (location.search.indexOf('printfriendly')==-1){document.write('<link rel="stylesheet" type="text/css" href="corev4.css" />');}else{ document.write('<link rel="stylesheet" type="text/css" ...
Read now
Unlock full access