Solved

Add Print button to Sharepoint NewForm

Posted on 2010-08-31
3
1,583 Views
Last Modified: 2015-12-08
We need a NewForm.aspx to be printable - preferably by adding a Print button to the form.  I dont see a Form Action for printing - any suggestions on how to accomplish this?

Thanks for your time.
0
Comment
Question by:TEEDA
3 Comments
 
LVL 21

Accepted Solution

by:
chapmanjw earned 500 total points
ID: 33569467
You could edit the NewForm.aspx page (in SharePoint Designer) and add a JavaScript print button.  This button would simply execute window.print(), here are some samples of using the JS function: http://www.javascriptkit.com/howto/newtech2.shtml
0
 
LVL 4

Author Closing Comment

by:TEEDA
ID: 33569505
That is perfect!  Many thanks for your time.
0
 

Expert Comment

by:viswanathuppu
ID: 41361104
Hi TEEDA,

I have tried this solution window.print(); on button click in javascript. The problem is it is printing the form with content in Chrome, and in IE it is printing blank page with header and footer.

The form is designed in infopath.

Please give me your thoughts on this.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now