Clearing Forms & Printing

C

Carl Jacobs

I have some simply infopath forms where data is entered printed and filed on
the client's master file. I would like to create 2 buttons on the form, one
to print the form and the other to delete the data so new information can be
entered. Can anyone tell the easiest way to do this?
 
S

S.Y.M. Wong-A-Ton

For the print button you could use code (the XDocument.PrintOut() method) in
the event handler for the button to print the active view (see
http://msdn.microsoft.com/library/en-us/ipsdk/html/xdmthPrintOut_HV01021397.asp?frame=true).
Note that your form must be fully trusted to be able to use this method.

For the delete button, you could add 1 rule (with several actions) on the
button to clear all the fields. You must add 1 action for each field to be
cleared. Clearing a field would be equivalent to setting its value to
something like e.g. an empty string.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top