PrintIt for SharePoint

12/4/2015 UPDATE: PrintIt for SharePoint 2010/2013 Version 1.7 has been released; 2013 is now out of beta.

PrintIt for SharePoint 2010/2013 allows you to easily print  views, list items and calendars right from the SharePoint ribbon – without all the chrome and branding and in a print-friendly format.

(The Print View icon on the List ribbon)


(The Print Item icon on the Display Form)


(Example of a printed Announcement item)

SharePoint 2010:
https://drive.google.com/open?id=0B8BoYZ4_2RhYbGNCTDBNN3IybmM

SharePoint 2013:
https://drive.google.com/open?id=0B8BoYZ4_2RhYWU5pQUpHZXZxRHM

Documentation is included in the ZIP file.

As always, I appreciate your comments and suggestions. If you found the solution useful please consider donating. It will help me offset my development costs. Thanks!

Advertisements

39 thoughts on “PrintIt for SharePoint

  1. Thanks for this great solution! My only question is, I have a calendar with multiple overlays on it. If I try to print, the calendar comes up blank. The solution works fine on calendars without overlays. Will there be a future fix for this?

    Thanks!

  2. Good Afternoon! All worked fine when I installed it using Power Shell…but when I went to deploy it, I received the following error:

    This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.

    Any ideas?

    Thanks in advance!

  3. Sorry…another question. I finally got the solution to deploy through Central Admin. I now see the “Print View” icon on the calendar. When I move the calendar ahead two months and hit “Print View”, it wants to print the CURRENT month, not the one that is on my screen. Any ideas on how to do this?

    Thanks!

    • Hi Sunnie – The Print View button will always default to the date range of the calendar when it was opened. I have updated the solution to allow you to toggle the date range from within the Print Preview. After you click the Print View button, press cancel on the print dialog and then you can adjust the calendar date by using the arrow buttons. Hope that helps.

  4. Thank you for this nice Print it solution! I have one question: When I use e.g. a Decision Meeting Workspace, I am not able to print items from the “Agenda” List. Do you have a solution for this problem?

  5. We’ve installed PrintIt on out intranet and it works great in our 2010 test system. In our production environment, it works fine for everything but InfoPath forms. It prints a blank page instead of the item. We can’t find the difference between the two environments and wanted to ask if you’ve seen this before or have any suggestions on where to look.
    Thanks in advace for your help – PrintIt is a great solution for us!

      • Sorry – correction to my previous reply. The print button is on the ribbon when ‘launch in dialog’ is set to no, but did not function. This was our initial setting in production. When ‘launch in dialog’ changed to yes, it prints a blank page.

  6. Yes – the test system prints InfoPath forms correctly. We did have problems in production at first -. InfoPath wants the form open in a dialog box in order to show the print button. We updated the options in the list and the button appeared on the ribbon. Now I think we may want to reinstall.

  7. Hi there. The app works great and is the perfect solution we’ve been looking for. Works great for lists and calendars but not for Wiki pages. Do you plan to include Wiki pages any time soon? Thank you

    • Hi Anthony, glad you found the solution useful. I have not considered Wiki pages yet; this solution was meant to allow for printing of lists and libraries.How would you envision the wiki printing feature working? Just printing the s4-workspace without any sharepoint chrome or branding?

      • Thanks Marc. Yes, just like how lists and calendars are printed without the chrome or branding. When I try to print the wiki page now, contents render small and have to play with scaling to fill the page. Didn’t have this problem with SP2007 but users are grumbling about it when we upgraded to 2010.

  8. This seems to be a great product. I’m experiencing one issue that I wanted to point out in case you weren’t aware. I’m currently using IE11 and am not able to print an individual item. List Views print fine but when viewing an individual item, I can’t print. The button does nothing. However, some of my colleagues are able to print using IE11 sporadically. Seems to be a refresh or caching issue with IE.

    Using Chrome works perfectly as expected.

    Thanks for providing us with a great product.

    • Hi Cody – I will retest the solution with IE11 and let you know what I find. Have you tried clearing the Temporary Internet Files to be sure you are getting the latest js file?

      • Hi Cody – I’ve completely retested the solution on IE11 (32-bit) and I can get it to print list views and list items without any error or failure. I tried all of the out-of-box list types and they work as expected. If you can open the f12 developer console while reproducing the failure maybe you can catch an exception or error being thrown that I am not seeing.

        Marc

  9. Hi – I deployed your solution on my sp2013 qa environment and it doesn’t appear to work when printing the detail record of a list. It is opening up a new window but there is no content. Thanks!

  10. hey mark,
    looks like a great solution.
    i was wondering , would it work on a sharepoint 2013 server ?
    my main use will be printing a filtered view / list .
    Does your code do that ?
    thanks in advance

      • Yeah i saw and dowloaded that one ,thank you.
        but is there a way to print out a filtered list ?
        let’s say i have three items ,with a property of yes\no ,i filter out the item with Yes ,and i want only the remaining items to print…
        is that possible ?

      • At the moment the list would need to be filtered at the view-level before printing as it opens the page in a new window; any filters you apply will be lost when the page reloads.

      • Another issue i’m having is with a “person or group” column .
        on preview ,there are, at some times big squares ,very colorful ones…
        If you encounterd those i’m sure you know what i mean.
        any thoughts about getting rid of those ?

        Much appreciated…

      • Cheers for that Marc ,
        by the way , fixed my big colurful square problem – if printing a person or group column , it just doesn’t take name (with presense) well , after changing to name (without presense) it worked fine.

        Thanks for your help , and the code obviously

  11. Hi, it seems that Infopath print in SP2013 is not working. Missing the method “printInfoPathItem”. Any update on that functionality?

      • Hi, the old SP2010 script didn´t work in SP2013. I created another version which works in our enviroment (SP version, browser version). Works for IP-forms opened as dialog or directly.

        Needs some more checking if you want to incorporate it.

        function printInfoPathItem()
        {
        var DocumentContainer = null;
        var styleSheet = null;

        styleSheet = document.querySelector(“link[rel=stylesheet][href*=’FormResource.aspx?solutionId’]”);
        DocumentContainer = document.querySelector(“[id$=’__XmlFormView’]”);

        var WindowObject = window.open(“”, “PrintWindow”, “width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes”);
        WindowObject.document.writeln(“”);
        WindowObject.document.writeln(“” + document.title + “”);
        WindowObject.document.writeln(”);
        WindowObject.document.writeln(styleSheet.outerHTML);
        WindowObject.document.writeln(‘ .ms-ButtonHeightWidth {display: none !important;} .ms-standardheader {font-size: 0.8em !important; } .ms-formbody {font-size: 0.8em !important; } ‘);
        WindowObject.document.writeln(“”);

        var pageContents = DocumentContainer.innerHTML;

        WindowObject.document.writeln(pageContents);
        WindowObject.document.close();
        WindowObject.focus();
        WindowObject.print();
        WindowObject.close();
        }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s