SharePoint 2010 Infopath Print Button

I received a request to put a print button within a List Item display view so that one could easily print the current item they’re viewing.  After searching for a way to put a print button within the Infopath form itself (and coming up empty), I figured out how to simply add it to the page that displays the form.

The end goal

Once you have your Infopath form put together and published to a List, go to the List page.

1. Click on the “List” tab under List Tools

2. Click on the drop down arrow on the “Modify Form Webparts” button (pictured)

SharePoint 2010 Infopath Print Button

3. Select “(Item) Display Form”

4. This will take you to an edit page screen with your Infopath form set as a webpart

SharePoint 2010 Infopath Print Button

5. Add a “Content Editor Webpart” to the page

6. Edit your new webpart’s source and paste in the following:

1<input type="button" value=" Print this page "
2onclick="window.print();return false;" />

Note: <form> tags are not required

This adds a print button to the page that uses the default print call within a browser.  Since we edited the “Display” form, the button will not appear if a user is editing the form or creating a new item.

Of course, the best part of this discovery is the added bonus of being able to add extra code to our Infopath forms, making them a much more versatile tool than they were before.

By |2016-11-02T17:15:15+00:00November 28th, 2012|C#, Our 2 Cents, Our Blog, SharePoint 2010|0 Comments

About the Author:

Leave A Comment

Did You Know….

GWEN-GARCIA-LEETS-IMAGEN-OFICIAL-SWN..Gwen Is the official spokeswoman of Smackwagon Design! GWEN Garcia Leets, is also sponsored by other internationally renowned companies. GWEN Currently is a host on an entertaining television program in Mexico called Marathon TeleHit

Interested in learning more about this beauty ? Click here to view GWEN's website to & keep you always informed of her most recent projects and events


Sharing is Awesome, Do It!

Share Smackwagon's web design company with your friends