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

Tip: Looking for answers? Try searching our database.

Trap canceled digital signature

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tillman Erb - 01 Feb 2006 21:51 GMT
Is there a way to program the OnSign event to identify whether a user
canceled digital signing of a form? I want to update certain fields in the
form programmatically only if the user completes the digital signature
wizard, not if they cancel out of it. Should I be using another event to do
this?
Tillman Erb - 01 Feb 2006 23:28 GMT
I have solved it. On the OnSign event, I do the following:

...
' disable default opening of signature dialog
e.ReturnStatus = True

Dim sig As Signature = e.SignedDataBlock.Signatures.Create()
sig.Sign()

' the following tests for the existence of the signature
If thisXDocument.SignedDataBlocks(e.SignedDataBlock.Name).Signatures.Count >
0 Then
      [code conditional on successful signature]
Else
      [code conditional on unsuccessful signature]
End If
...

Seems to work!

~ Tillman

> Is there a way to program the OnSign event to identify whether a user
> canceled digital signing of a form? I want to update certain fields in the
> form programmatically only if the user completes the digital signature
> wizard, not if they cancel out of it. Should I be using another event 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.