SharePointAds TextOnly

Monday 27 June 2011

SharePoint 2010 : Print Calendar list on a single click

Do you want to print SharePoint 2010 list at a single click?
Yes, now you can print your SharePoint 2010 list in single click using SPPrintListButton solution.
I have provided Sandbox solution which will add new "Print" button on the top ribbon for SharePoint List. As of now I have created for Calendar lists.
Print List Button


Please have a look at my codeplex solution to download and install feature in your SharePoint 2010 list.
CodePlex Solution: Download From CodePlex

Important Update:  After lots of print button image view error requests, updated solution to work with subsites calendar lists. Please visit at same CodePlex page to download updated version.
And let me know if you get previous error again.
.

31 comments:

  1. This is a great tool youve developed!

    I downloaded and installed it and it works like a charm.

    However, the events overlap dates...For instance an event that is scheduled on the 30th will print overlapping the 30th and the 31st...Any thoughts on how to fix this?

    ReplyDelete
  2. How do I get this to work on SP lists other than calendar?

    ReplyDelete
  3. You link for items other than calendar list is broken

    ReplyDelete
  4. Yes, WSP file is available,
    Please download WSP solution form Codeplex:
    http://spprintlistbutton.codeplex.com/

    let me know if you want any more assistance. :)

    ReplyDelete
  5. @El Hartley:

    you can change the RegistrationId field from element.xml file in project source copy and then deploy project.
    I have used RegistrationId="106" for Calendar(Event) list. Find your list ID from http://www.niteen.co.cc/p/sharepoint-registration-ids.html
    You can

    ReplyDelete
  6. I installed the solution, and I see the 'Print' label in the events tab. But there is no Print Icon, just the text. Does the print graphic have to be placed somewhere?

    ReplyDelete
  7. @Anonymous: could you try to publish image from SharePoint Designer?

    ReplyDelete
  8. Very good job!

    However I have the same problem as the first post (24 August 2011 13:24), I don't understand why the events overlap dates when I print the calendar.

    Have you got an idea to fix this error?

    ReplyDelete
  9. To fix this error, we have to set the calendar's width.

    1. Select "Calendar" from Quick Launch
    2. Site Actions drop-down to "Edit Page"
    3. Calendar’s drop-down, choose "Edit Web Part"
    4. Expand "Appearance"
    5. Choose the “Yes” radio button under Width , and put 12 and drop-down should be inches
    6. Hit Apply

    source : http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/8a51b7d8-bfc6-441f-b1e0-1f38ee7b8c91

    Good Job!

    ReplyDelete
  10. Hi Niteen, I also have issues with the Print icon. I checked the folder structure in SP Designer and PreviewImages is created and contains the print.png. But for some strange reason it's not showing up on the Ribbon.

    What do you mean by publishing image from Designer? Should I just re-upload the print.png?

    ReplyDelete
  11. Im having the same problem as @Anonymous. I'm not sure where to publish the .png file. It already creates a print.png in the "PreviewImages" folder in SharePoint designer. Niteen, any help would be greatly appreciated.

    ReplyDelete
  12. Hi, is this also working on sharepoint foundation, because I have uploaded the .wsp file but I cannot activate it. Chris

    ReplyDelete
  13. @Anonymous:

    Sorry, I haven't tested on SharePoint Foundation

    ReplyDelete
  14. But please make sure that you have activated feature. Try to look at http://yoursite/_layouts/ManageFeatures.aspx

    and check "PrintCalendarRibbonButton Feature1" is activated

    ReplyDelete
  15. Hello,

    Thank you for making this solution available -- I think it's what I need.

    I am able to follow up to step #8 in the instructions. When I look at the Manage Features list, it doesn't show up. It shows as an active solution, but it doesn't appear in the Features list.

    Do you have any ideas about why this might happen?

    Thanks!

    ReplyDelete
  16. I'm so silly. I was looking under "C" for calendar instead of "P" for print. Everything's fine.

    ReplyDelete
  17. This time I do have an actual issue. I only see the "print" label, not the icon. If I publish print.png to the site with SharePoint Designer, where should I put it?

    Thanks!

    ReplyDelete
  18. Hi Niteen,

    Need a help from you.

    I am working on a colour coded calendar,I used the calculated column and written some function to render that column to html using Javascript and the finally the colour was displaying.The issue was When I click on Expand all button in Ribbon the colour was not displaying and html code is displayed.If you have any idea please help me on this issue

    Regards,
    Shivaji

    ReplyDelete
  19. Has anyone created a Print LIst that works for the lists on the Page?

    ReplyDelete
  20. this works great now I have to modify for access. png dint work but should have it working in theory the html part should just look for it on the server.

    ReplyDelete
  21. Hi
    is there a way to print multiple calendars in one view?
    Thanks.

    ReplyDelete
    Replies
    1. No, not yet developed.
      Please specify details then I could develop it.

      Delete
  22. This is awesome. Thank you Niteen.
    I am still having the same issue as others as related to the the Print icon.
    Why can't I see this icon? Has this been resolved?

    Thanks,
    Ninel

    ReplyDelete
  23. In reference to the issue above with Sharepoint Foundation from Chris - make sure that sandboxed code service is started in Centeral Administration: Central Administration > System Settings > Manage Services on Server > check that “Microsoft SharePoint Foundation Sandboxed Code Service” service is running

    Solution from here http://sharepoint.stackexchange.com/questions/12996/cant-activate-solution-from-site-settings-in-sharepoint-foundation-2010

    ReplyDelete
  24. Greate feature, but cannot get the Print icon to display. Any chance that can be fixed?

    Thanks,

    Jim

    ReplyDelete
  25. Important Update: After lots of print button image view error requests, updated solution to work with subsites calendar lists. Please visit at same CodePlex page to download updated version.
    And let me know if you got previous error again.

    ReplyDelete
  26. Hello,
    I can't seem to get the PrintCalendarRibbonButton to activate. It's just grayed out. Suggestions?

    ReplyDelete
  27. Hi BrittanySmith,

    Do you have full permissions to activate/enable features?

    ReplyDelete
  28. Hi, works great, except I can't see the image of the printer in the ribbon. the print label works. what do I do?

    ReplyDelete
  29. Hi Charles,

    try with http://www.niteenbadgujar.com/2012/11/print-list-views-button-on-ribbon.html

    ReplyDelete