Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

OK I've been asked to put a print button on an infopath 2007 form.

But they want me to amend the code so that the Click event submits the form to a Sharepoint 2007 Forms Library as well.

I know this requires code behind the form and full trust. But what is the code?

Everyone's telling me how easy this is. So how easy is it?

share|improve this question

2 Answers 2

It is not easy. The problem with printing is that it calls an action on the client machine, and this is why it requires full trust. What you should really do is create a print view of the form and have the button switch from the current view to the print view after the submit action, then give the user the instructions to press Ctrl+P or click the print button in the browser to actually print the form, this way they can select the proper printer and print the form.

share|improve this answer
    
Thanks, that is as I thought. :) –  George Winters Apr 28 '11 at 11:03

I have no idea what's your environment like but if your printer has email address you could email (submit) entire form to that address so it will be printed. This is probably too crazy but it will work without code :)

You can also submit to SharePoint and then create an Event Receiver to send it via email to printer.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.