How to install and Activate?
This is sandbox solution. You can download "PrintCalendarRibbonButton.wsp" and upload to your SharePoint 2010 site.
Please follow the given steps to upload and activate the solution.

Open your SharePoint 2010 site on your browser.
Click on “Site Actions” -> “Site Settings”, it will open site settings page with all options.
Click on “Solutions” from “Galleries” section
Click on “Solutions” from Top Ribbon
Click on “Upload solution” button from ribbon
Browse for the given “PrintCalendarRibbonButton.wsp” file and click on OK button.
Select the uploaded “PrintCalendarRibbonButton.wsp” file, and click on “Activate” link from top ribbon.
Again goto “Site Actions” -> “Site Settings”, and select “Manage site features” link from “Site Actions” section.
Find for “PrintCalendarRibbonButton Feature1” and make sure that feature is activated. If it is not activated then click on “Activate” button.
That’s it.
Now open your Calendar list
Click on “Events” from top ribbon. Click on “Print” button.
Now you can take the printout.



IF you want to create same print button functionality for other SharePoint lists then you will have to change following changes in "Element.xml" file.

In Custom action, update "RegistrationID" as per your requirement. I have created print button for calendar list so that used "106". For more information http://www.niteen.co.cc/p/sharepoint-registration-ids.html
Change the CommandUIDefinition location.

Last edited Jul 1, 2011 at 8:44 AM by nitin0505, version 1

Comments

crow131 Apr 27, 2012 at 9:49 AM 
Action for all Lists

<CustomAction
Id="PrintListRibbonButton.Action" Location="CommandUI.Ribbon"
RegistrationType="ContentType" RegistrationId="0x01">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Documents.Share.Controls._children">
<Button Id="PrintList" Command="PrintList" Description="Print List" LabelText="Print"
Image32by32="/previewimages/print.png" TemplateAlias="o2" Sequence="12"/>
</CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.ListItem.Share.Controls._children">
<Button Id="PrintList" Command="PrintList" Description="Print List" LabelText="Print"
Image32by32="/previewimages/print.png" TemplateAlias="o2" Sequence="12"/>
</CommandUIDefinition>
<CommandUIDefinition Location="Ribbon.Calendar.Events.Share.Controls._children">
<Button Id="PrintList" Command="PrintList" Description="Print Calendar" LabelText="Print"
Image32by32="/previewimages/print.png" TemplateAlias="o2" Sequence="12"/>
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler Command="PrintList" CommandAction="javascript:window.print();" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>

toreykirby Apr 25, 2012 at 4:40 PM 
I can get it to activate on the screen, but it never appears in Features. Has anyone been able to get this to work? Thanks.

jriesen Feb 13, 2012 at 5:01 PM 
Activated in sandbox solutions, activated in site features, no printer icon at root site collection, and nothing at subsite levels. Will you fixing the code to address this issue any time soon? Also, will you build into your solution the width requirements so you don't have to set them in the webpart? This solution has great potential, just needs some refining. :-)

jessg_gtekpacific Dec 2, 2011 at 6:37 PM 
I installed and activated the solution - no icon visible, but the 'Print' label shows and it works.
Any idea how to display the print icon on the ribbon ?
Thanks for a useful addition to my SharePoint

jinh Sep 12, 2011 at 2:06 PM 
Same here, installed, activated, but no button anywhere. Any idea?

JH

Caladan607 Jul 12, 2011 at 5:39 PM 
Got it. Had to start the sandbox service. But still, the button does not appear in the Events ribbon or anywhere else.

Caladan607 Jul 12, 2011 at 4:37 PM 
The solution will not activate. The activate is grayed out. Any suggestions?