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 / November 2006

Tip: Looking for answers? Try searching our database.

Closing Infopath via OnSaveRequest

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Noel - 03 Nov 2006 09:30 GMT
Hi,

I would to know if its possible to close the Infopath program when the user
clicked the save button. I already tick the "Save using custom code" under
Form Option, and write the script below.

Sub XDocument_OnSaveRequest(eventObj)

' Write the code to be run before saving here.
eventObj.IsCancelled = eventObj.PerformSaveOperation

' Write the code to be run after saving here.
eventObj.ReturnStatus = True
Application.ActiveWindow.Close(true)

End Sub

After doing all above, I can't still close the infopath program after
clicking the save button.

Any comment please.

Thanks in advance!
Noel - 08 Nov 2006 07:07 GMT
> Hi,
>
[quoted text clipped - 19 lines]
>
> Thanks in advance!

any help please. thx!
 
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.