Add Print button in InfoPath form to print the form?
-
Friday, July 08, 2011 1:51 PM
I know there is already standard print button in infopath but i still need to add a button and clicking on a button needs to print the form. Googling for a while i only found couple of suggestions but none of them work at all. My form has full trust security setting and will be deployed by administrator. I tried using this.Print(), XDocument.Print(), this.PrintOut(), thisxdocument.PrintOut() etc..but none of them worked. Everytime i get his error "....does not contain definiton for Print".
Could any one suggest how i can achieve this?
Thanks.
creativity..
Answers
-
Monday, July 11, 2011 2:37 AMModerator
I would suggest you try Paul’s trick using JQuery to print the InfoPath form web part.
https://www.nothingbutsharepoint.com/sites/eusp/Pages/jquery-for-everyone-print-any-web-part.aspx
Thanks & Regards.Lily Wu
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- Marked As Answer by Lily WuModerator Monday, July 18, 2011 1:19 AM