Solved

List Custom Print View

Posted on 2011-02-15
9
463 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There is one common problem that all we SharePoint developers share: custom solution deployment. This topic can't be covered fully in this short article, so all I want to do in this one is to review it from a development-to-operations perspectiv…
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

757 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