- Open the Display Form web part page (make sure to select the correct content types if you have more than one....). You can do this by clicking Form Web Parts > (Content Type if you have several) Display Form
- Edit the InfoPath Form Web Part. Set the Chrome to include just the Title.
- Add a Content Editor Web part to the page. Set it to Hidden.
-
Add the JS from below link in the HTML source of the Content Editor Web part.
https://www.nothingbutsharepoint.com/sites/eusp/Pages/jquery-for-everyone-print-any-web-part.aspx - Save the page.
In the above JS script, the function “printWebPart” can be modified and replaced by the below script function
printWebPart(tagid)
{
if (tagid)
{
this.print();
}
}
This will directly open up the popup for setting printer options without showing the Print Preview.
If you have any questions you can reach out our SharePoint Consulting team here.
No comments:
Post a Comment