Retrieves the data in the control in Pocket Word Ink (PWI) format. This format is compatible with Pocket Word.

Signature controls
Integer controlname.GetDataAsInk ( data )
Argument |
Description |
|---|---|
controlname |
The name of the control for which you want to retrieve the data |
data |
The blob in which the PWI data is saved |
Integer. Returns 1 for success and a negative integer for failure.
The GetDataAsInk function returns both typed and freehand drawing or writing from a Signature control in PWI format in a blob.
The following example gets unformatted data from a Signature control in PWI format and writes it to a file. The return value from the function is written to a single line edit box:
blob lblb_ink
integer li_file, li_rtn
li_rtn = sig_1.GetDataAsInk(lblb_ink)
sle_1.text = string(li_rtn)
li_file = FileOpen("\My Documents\testpwi.pwi", &
StreamMode!, Write!, LockWrite!, Replace!)
FileWrite( li_file, lblb_ink )
FileClose( li_file )
| Copyright © 2004. Sybase Inc. All rights reserved. |
|
|