Wednesday 10 February 2016

Hosting Tips: How to Print button for Custom List in SharePoint 2013?

Leave a Comment
In this tutorial, I will show you how to Print button for Custom List in SharePoint 2013. We needed to extend the Ribbon to have a Print button for Custom list with Infopath form. While I found so many articles to extend Ribbon UI, most of them are for a regular list / library. In SP2010, now we do have an option to use a Infopath for a custom list that uses a latest Ribbon Tab/Grouping and i found nothing much on web. Now, use the following element manifest:

Code:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <CustomAction
 Id="InfopathformPrintButton"
 Location="CommandUI.Ribbon" Rights="ViewListItems">
  <CommandUIExtension>
   <CommandUIDefinitions>
    <CommandUIDefinition
     Location="Ribbon.Tabs.InfoPathListDisplayTab.Manage.Controls._children">
     <Button Id="Ribbon.Tabs.InfoPathListDisplayTab.Manage.Controls.Print"
      Command="CallPrint"
      Sequence="1"
      Description="Print the infopath form"
       Image16by16="/_layouts/images/placeholder32x32.png"
       Image32by32="/_layouts/images/placeholder32x32.png"
      LabelText="Print"
      TemplateAlias="o1"/>
    </CommandUIDefinition>
   </CommandUIDefinitions>
   <CommandUIHandlers>
    <CommandUIHandler
     Command="CallPrint"
     CommandAction="javascript:function processPrint(){window.print()};processPrint();" />
   </CommandUIHandlers>
  </CommandUIExtension>
 </CustomAction>
</Elements>



Best SharePoint Hosting Recommendation
One of the most important things when choosing a good SharePoint hosting is the feature and reliability. HostForLIFE is the leading provider of Windows hosting and affordable SharePoint, their servers are optimized for PHP web applications such as the latest SharePoint version. The performance and the uptime of the hosting service are excellent and the features of the web hosting plan are even greater than what many hosting providers ask you to pay for. 

At HostForLIFE.eu, customers can also experience fast SharePoint hosting. The company invested a lot of money to ensure the best and fastest performance of the datacenters, servers, network and other facilities. Its datacenters are equipped with the top equipments like cooling system, fire detection, high speed Internet connection, and so on. That is why HostForLIFE.eu guarantees 99.9% uptime for SharePoint. And the engineers do regular maintenance and monitoring works to assure its SharePoint hosting are security and always up. 

http://hostforlifeasp.net

0 comments:

Post a Comment