Here is what we are trying to do
We have a template that we want to show to the user and then apply a signature when the user accepts the template
thought process was
Fill Template Fields
Dump Template
Show Preview
User clicks sign
We find an object on the document and apply the signature image
hSigPic = VpeFindTplVpeObject(hTemplate "InmateESignature")
which returns a handle
VpeGetObjKind(hSigPic) returns 21 so that is correct
int icount = VpeGetInsertedVpeObjectCount(htplField) returns 1
hObj = VpeGetInsertedVpeObject(htplfield, 0) returns a handle
VpeGetObjPictureFileName(hObj,...) returns the filename i set before dumping the template which was essentially an empty JPG file
then i set the picturefilename using VpeSetObjPictureFileName and that does not seem to work
if i set the background
VpeSetBkgColor(hObj, color)
VpeSetBkgMode(hObj, VBKG_SOLID)
it works
Any idea why the picture doesnt work?
thanks
Mike