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

whampilia

<a href=https://priligyset.com>store online site dura dapoxetine[/url]

whampilia

whampilia

<a href=http://vsprednisonev.com>prednisone,purchase online[/url]

whampilia

acquile

<a href=http://vscialisv.com/>where to buy cialis</a>

acquile

Colbylll

Sugardaddyfinder by Tumblr

approximate early lovely girls having an remarkably a small amount of desire days stop in give to a bit more cheer to obtain coffee drinks couple or pamper. within the figure out the best television url I will make sure to give you a sugary photograph using me [url=https://www.facebook.com/pg/Chnlove-scam-471737819697545/posts/]chnlove.com reviews[/url] and also clear away. Cashapp: $pocketprincess1oI not even severe how to choose this nudes contemplate each i want carbs baby that is interested inside of celibate online dating, i guarantee individuals weekly free $800 $1000 sugarbabyneeded sugarbaby Sudy sugardaddy findom paypig collegegirls Paypal USAOn numerous REAL spunk I have the need for riches this the actual. I pays this in turn school every single on my own. I haven used a single penny for myself because of the pandemic went about, I only been able to pay for 1 our own educational costs 2 toiletries for the family 3 diet. i mean of which. I going to go thus massive into money associated with warmer summer months I have any use for guide.

closely researching transforming into a carbohydrates baby added these cracks I should have help you out on how to it lmao. even when I really can supply porn assortment things, i will be a ideal fan base, ready look at in any way, And i love to think I a chum:). internet marketing tremendously with music /singing and becoming educated different languages (clearly mandarin chinese and as a consequence japanese). I in very undesirable identify at this instant, and so nicely so head over heels for some assistance.

Colbylll

whampilia

<a href=https://sscialisvv.com/>buying cialis online</a>

whampilia

whampilia

<a href=https://vsnolvadexv.com/>cheap online nolvadex</a>

whampilia

PatrickDioge

MEET HOT LOCAL GIRLS TONIGHT WE GUARANTEE FREE SEX DATING IN YOUR CITY CLICK THE LINK:
<a href="https://about.me/alexa.smith">FREE SEX</a>

PatrickDioge

Michaelmup

buy cialis usa [url=https://cialiswithdapoxetine.com/#]cialis coupon[/url]

Michaelmup

MichaelPef

cialis alternative [url=https://cialiswithdapoxetine.com/#]cheap cialis[/url]

MichaelPef

Michaelmup

cialis dosage [url=https://cialiswithdapoxetine.com/#]cialis pills[/url]

Michaelmup

MichaelPef

cialis without a doctor prescription [url=https://cialiswithdapoxetine.com/#]cheap cialis[/url]

MichaelPef