Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2006

Tip: Looking for answers? Try searching our database.

Clearing Forms & Printing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carl Jacobs - 23 Apr 2006 05:15 GMT
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.Y.M. Wong-A-Ton - 23 Apr 2006 12:34 GMT
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.
---
S.Y.M. Wong-A-Ton

> 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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.