SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 1 down vote accepted

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


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.