InfoPath Print command

S

sergio

I drag an infoPath form to the printer, I got an error to open the file with
the correct application. I setup the print command with &Print similar to
word but to no avail. Can any one point me in the right direction?
 
S

Sandeep

hI Sergio

You can follow these steps for that,

1) Paste “XDocument.PrintOut()†under the code of Print button you placed.
2) Give full trust to your form and sign it.
3) Now publish the form either to sharepoint or localdirectory.
4) Open the published form and click that Print button .
5) A dialog will be displayed asking you to save that file with an extension
“mdiâ€.
6) Click on save and you will see the print preview of that form.
7) You can now do whatever you want regarding printing.

I hope this will help U,
 
Top