A common complaint I hear about custom InfoPath forms on lists and libraries is that you can’t print them. If you try and use the print button through the browser, you will likely end up printing the entire page. If you take a screenshot, you might not capture the entire form.

We can fix all these problems by adding a “Print” button to the forms.

PrintButton-Form.png

Read on to find out how!

First, open up Visual Studio 2010, and create an empty SharePoint project. In the project, add a new element, and add the following to it.

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="PrintButton" Location="CommandUI.Ribbon" Rights="ViewListItems">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition
          Location="Ribbon.Tabs.InfoPathListDisplayTab.Manage.Controls._children">
          <Button Id="Ribbon.Tabs.InfoPathListDisplayTab.Manage.Controls.Print"
            Command="Print"
            LabelText="Print Item"
            Sequence="16"
            TemplateAlias="o1"
            Image16by16="/_layouts/images/printer.png"
            Image32by32="/_layouts/images/printer.png"/>
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler
         Command="Print"
         CommandAction="javascript:window.print();" />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>

You will notice in the XML above that we reference an image file. This is the icon that will show in the ribbon. You can download the image I used from here. You must place this file in the SharePoint root (14 Hive) as show in the image below.

PrintButton-Location.png

Make sure you have the element added to a feature, and deploy the solution to your farm. After you deploy your solution and activate the feature, you should see a Print button on the display view of your forms. When the print button is clicked, it will bring up the Print dialog from the browser…and it will only print the form!

Comments

taomiwersta

I am toamiwersta and i would to help you. Anyone?

taomiwersta

ltonGam

https://bit.ly/2SMi0Bw < < < [b]Click to Get.[/b]

Get FREE COINS and TOKENS for APEX Legends Game for PC XONE and PS4.

Link: [url=https://justpaste.it/APEX-Legends-HACK]this website[/url]

[img]https://i.imgur.com/A4ZOQCT.jpg[/img]

This is called a distracted amassing of planets on the outskirts of the Borderlands, untouched by case and abundant in resources and possibilities. For the residents of the Odludzia, however, activity is of tiny value, and the misfortune lurks at every turn. later than local settlers, explorers and bandits spent their combine lives in an endless suffer for power. Now they match their disputes at the Apex Games - brutal competitions in which legends from every corners of the Borderlands fight for money, fame and glory.

KW:
APEX Legends XBOX Hack 2019
APEX Legends Tokens Pc 2019
Free APEX Legends Cheat 2019
APEX Legends Free Hack 2019
APEX Legends Tokens 2019
APEX Legends XBOX Hack 2019
APEX Legends Tokens Glitch 2019
Free APEX Legends Hack No Survey 2019
APEX Legends Tokens Not Showing Up 2019
APEX Legends Hack Download 2019
APEX Legends Coins Glitch 2019
APEX Legends No Offer Hack 2019
Free APEX Legends Hack No Survey 2019

ltonGam

ltonGam

[b]Free Hack for ROBLOX RX GENERATOR[/b]

[url=https://create.piktochart.com/output/36384155-roblox-hack-for-robux-2019-get]ROBLOX HACK 2019[/url]

KW:
Robux Hack Free RS 2019
Roblox Hack Tool 2019
Get Free Robux 2019
Roblox Free Robux Site 2019
Robux Generator No Human Verification Or Offers 2019
Roblox Codes 2019
Free Robux No Download 2019
Websites To Get Free Robux 2019
Roblox Robux Maker 2019
Roblox Get Free Online 2019
Roblox Robux Generator Online 2019
Robux Hack Download 2019
Hack Money Roblox 2019
Real Robux Hack 2019
Free Robux Website 2019
Robux Adder 2019
Free Robux For Free 2019
Easy Way To Get Free Robux On Roblox 2019
Free Robux Instantly 2019
Roblox Robux Generator No Verification 2019

ltonGam