[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

List Custom Print View

Posted on 2011-02-15
9
Medium Priority
?
517 Views
Last Modified: 2012-05-11
I'm using SharePoint 2 and am a total newbie.  Our company does not allow SharePoint designer.  I have a custom list and I want to be able to print individual items in the list without...
- the navigation headers, (mine says "Home", "Help"...and "Up to ...")
- without the Edit options, ("New Item", "Edit Item", ...)
- without the URL at the bottom
- and without the left side border that is printing as well.  This is the layout of the entire site - a big margin on the left.  Not sure if this is removable.

What can I add to a content editor web part that will allow me to do this?  Thanks!
0
Comment
Question by:error_prone
  • 4
  • 4
9 Comments
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34900383
If you are not allowed to do anything on the SharePoint environment it is going to be very hard. How many things are you planning to print? If it is only one, why not just take a screenshot and paste it into mspaint. I know it sounds like a very newbie solution, but if you are not allowed to do a lot, this pretty much is your only option.

If you are allowed to use jquery, you can use the remove function of the api:
http://api.jquery.com/remove/
0
 

Author Comment

by:error_prone
ID: 34900411
I can add a content editor web part.  Is there code I can put in that to customize print view?
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34900426
Yes, you can put the jquery code in the content editor webpart if your admins have added jquery support to your sharepoint farm.
If not, you will probably be able to achieve this somehow in javascript as well, but that will be "insane".
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 

Author Comment

by:error_prone
ID: 34900448
Ok, so I'm still at the beginning - not knowing exactly what code to add to achieve the bulleted items in the original question.
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34900468
It's not going to be that easy. You will have to look at the source of the page, and identify all the elements of the page that you want to be removed. You can use internet explorer for that, hit f12 and then select by click. This will allow you to select an element and it will give you its information.

Once you have identified the elements you will have to use the jquery remove cocde in your script to remove all the items after which only what you want will remain.
0
 

Author Comment

by:error_prone
ID: 34900492
This would remove them entirely right, and not just in print view?
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34900518
Yes, but then again you could use querystrings like url?printview=true to show a printable versions and have your jquery script take that into account.

How to read querystrings:
http://codeasp.net/blogs/raghav_khunger/microsoft-net/1164/get-querystring-values-using-jquery
0
 

Author Comment

by:error_prone
ID: 34903013
I have no idea how to implement your suggestions...
0
 
LVL 6

Accepted Solution

by:
Rafael I earned 2000 total points
ID: 34954641
in the content editor, copy this into the source code.

http://www.endusersharepoint.com/2008/12/09/jquery-for-everyone-print-any-web-part/

and let us know if it works.  You should really push to get SharePoint Designer though, it will help you down the road, and it's a free download now.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

826 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question