Category: SharePoint 2010
You may need to print a single list item in SharePoint 2010. However, this functionality does not exist unless you print with Excel, which isn't what you are looking for anyway.
So, how do we go about accomplishing this?
- Open a List
- Hit the List tab
- Click the Form Web Parts dropdownlist
- Choose “Default Display Form”
- At the top of the Page – Insert Tab, Click the Web Part button to add a new Content Editor web part (CEWP).
- From Categories choose “Media and Content” > “Content Editor” and add it to the main section of the page.
- Click the “Click here to add content” and then click the HTML button in the Ribbon to bring up the Edit source code window.
- 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>
Ignore any warnings.
Next, hit the Page tab at the top of the page to view the List item. You should see the Print button.
Hit the Print button to print just the list item.
Any questions please just ask.
Derek
Great and simple!
ReplyDeleteHowever I have a multiline textbox in the form and the right margin gets cut. Any ideas?
your solution is simple by simple i mean it doesn't resolve any real world problem sets
ReplyDeleteYou made my day. Thanks you so much.
ReplyDeleteI don't see a print button anywhere.
ReplyDeleteHi Derek, any chance that I can set the print size bigger?
ReplyDeleteDid you find a resolution for this? I have same issue.
DeleteDid you find a way to "scale to 150%" with the print button?
DeleteYou can just overscale your infopath form...
DeleteTYTY!!
ReplyDeleteYou are the master. You made my day.
ReplyDeleteThanks ver much for this. FYI: if you've enhanced your list with Infopath, add the print option to the Item Display Form instead of the Default Display Form.
ReplyDeleteThis worked exactly like I needed it! Thanks for the tip.
ReplyDeleteGood Stuff!!!
ReplyDeleteWhat if we need to print ALL items in the list with one click with each List Item on a page? How do we accomplish that?