Fred,
I even tried initializing the variable lblobFingerPrint to SPACE(4096) - to no avail. The ptemplate object does not have a property that shows how big the "fingerprint data" is.
Thanks.
Dennis
>>Borislav,
>>
>>I believe the problem lies in this particular line
>>
>>
>>lnResult = ptemplate.Export( @lblobFingerPrnt )
>>
>>
>>The variable lblobFingerPrnt just doesn't get the value returned!
>>In the documentation, the Export method returns a "BYTE ARRAY".. how do we do that in VFP?
>>
>>Thanks
>>
>>Dennis
>>
>
>lblobFingerPrnt must be initialized large enough to hold all the data that could be returned. Try setting it's value to SPACE(2000) or something like that, depending on how big the data returned might be.
>
>>
>>
>>LOCAL lblobFingerPrnt, lnResult
>>
>>SET ASSERTS ON
>>WAIT WINDOW NOWAIT "Creating Employee Record..." NOCLEAR
>>
>>lblobFingerPrnt = []
>>lnResult = ptemplate.Export( @lblobFingerPrnt )
>>
>>ASSERT NOT EMPTY(lblobFingerPrnt)
>>IF lnResult # Er_OK
>> MESSAGEBOX( "Error in getting Registration Template" )
>> RETURN
>>ENDIF
>>
>>APPEND BLANK IN employee
>>replace lastname WITH thisform.txtLastname.Value,;
>> firstname WITH thisform.txtFirstname.Value,;
>> fingerprnt WITH lblobFingerPrnt IN employee
>>
>>WAIT CLEAR
>>