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

terwixonse

[url=https://yelloyello.com/places/coin-master-hack-without-verification]web[/url] with Coin Master Hack 2019 MAY UPDATED!
[b]MAY UPDATED 2019. [/b]
kw:
Coin Master Hack Dotkom
Coin Master Hack Tool No Human Verification
Coin Master Hack Offline

terwixonse

terwixonse

[url=https://mareks-first-project-5ac191.webflow.io/]website[/url] with Coin Master Hack 2019 MAY UPDATED!
[b]MAY UPDATED 2019. [/b]
kw:
Coin Master Real Hack Apk
Coin Master Hack Like
Gehe Zu Coin Master Hack

terwixonse

AlexSew

Hello! Do you like to play, but games only take up your time, and loved ones swear when they see that you are sitting at the computer again? We need to take action. No, I do not urge you to quit playing, but I propose to receive earnings on games. Then loved ones will sympathize with your hobby and you can afford more.
Especially for you, I found out where you can earn money, how and on what games. You just have to choose a method and act. <a href=https://clck.ru/EwfVV>casino chicago poker</a>

Remember, roulette in an online casino can be used in the same way as if you were playing in a real casino. At the same time, in a stationary casino no one will allow you to play just like that without making real money bets, and here you can just have a good time playing for a free game. Well, if you still want to try your luck when playing for real money, we will kindly provide this opportunity!
<a href=https://clck.ru/EwfVV>casino knight</a>


[url=http://bbs.realmax.com/thread-1295-1-1.html]resort casino tunica[/url] [url=http://firearm-bloom-interaction.catlink.eu/general-discussion/428993576/west-wind-casino]west wind casino[/url] [url=http://podatok.net/viewtopic.php?f=23&t=620]indiana casino review[/url] e279944

@_c

AlexSew