Solved

List Custom Print View

Posted on 2011-02-15
9
475 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
 

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now