Solved

List Custom Print View

Posted on 2011-02-15
9
507 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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