Thursday, 7 June 2012

Print a single List item in SharePoint 2010

  1. Open a List
  2. Hit the List tab
  3. Click the Form Web Parts dropdownlist
  4. Choose “Default Display Form”


       5. At the top of the Page – Insert Tab, Click the Web Part button to add a new Content Editor web part (CEWP).
       6. From Categories choose “Media and Content” > “Content Editor” and add it to the main section of the page.


       7. Click the “Click here to add content” and then click the HTML button in the Ribbon to bring up the Edit source code window.
       8. In the window add the following code to display a Print Button at the top of the list item window.
                  <code>
                      <input type="button" value=" Print this page " onclick="window.print();return false;" />
                  </code>
 


      9. Ignore any warnings.
    10. Next, hit the Page tab at the top of the page. Goto the list and click "Add New Item". Select item then click on "Items" under "List Tools" and then click "view items".


11. Hit the Print button to print just the list item.



No comments:

Post a Comment