Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: Electronic(digital) Signature with PowerBuilder

$
0
0

We have used the software and signature pads from Topaz Systems.

 

Electronic Signature Pads and Software | Topaz Systems Inc.

 

This allows you to add a signature control that you can use anywhere in your application and use the signature pad to collect the signature.

 

<OPEN Event>

//Sets up the object to receive signatures

ole_sigplus1.object.TabletState = 1

 

<OK Button>

string ls_signature

  

//Changes flag

ibl_ok = true

 

//Stores the signature

ls_signature = ole_SigPlus1.object.SigString

 

ole_SigPlus1.object.ImageFileFormat = 0 //0=bmp, 4=jpg, 6=tif

ole_SigPlus1.object.ImageXSize = 368 //width image in px

ole_SigPlus1.object.ImageYSize = 50 //height image in px

ole_SigPlus1.object.ImagePenWidth = 10 //image pen width in px

ole_SigPlus1.object.JustifyMode = 5 //zoom signature

 

//Saves the Signature as an image

if (ibl_issuer) then

    ole_SigPlus1.object.WriteImageFile("C:\_APPS\TaDTP\issuer_sig.bmp")

elseif (ibl_employee) then

    ole_SigPlus1.object.WriteImageFile("C:\_APPS\TaDTP\emp_sig.bmp")

elseif (ibl_receiver) then

    ole_SigPlus1.object.WriteImageFile("C:\_APPS\TaDTP\receiver_sig.bmp")

end if

  

//Closes window

CloseWithReturn(parent, ls_signature)

 

<CLOSE Event>

//Turns off the Signature control

ole_SigPlus1.object.TabletState = 0


Viewing all articles
Browse latest Browse all 7329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>