vb.net - Error Value of type 'String' cannot be converted to 'secure.echosign.com.ArrayOfString' -
i using adobe echosign web service create senddocument function in vb.net. tried solution in post using echosign api in vb.net no luck.
i getting error
value of type 'string' cannot converted 'secure.echosign.com.arrayofstring'
in code below @ .recipients = recipients(0)
public sub senddocument(byval apikey, byval filename, byval formfieldlayertemplatekey, byval recipient) dim recipients() string = recipient dim docrecipient recipientinfo = new recipientinfo() docrecipient .email = recipient .fax = "800-123-4567" .role = recipientrole.signer end dim doccreationinfo documentcreationinfo = new documentcreationinfo() doccreationinfo .recipients = docrecipient(0) .name = path.getfilename(file.name) .message = testmessage .fileinfos = fileinfos .signaturetype = signaturetype.esign .signatureflow = signatureflow.sender_signature_not_required end
when try .recipients = recipients
error reads
value of type '1-dimensional array of string' cannot converted 'secure.echosign.com.arrayofstring'.
any suggestions on how resolve error?
try assigning array of recipientinfo
objects .recipients
field:
'create recipientinfo object dim docrecipient recipientinfo = new recipientinfo docrecipient .email = recipient .fax = "800-123-4567" .role = recipientrole.signer end 'create recipientinfo array new object contents dim recipients() recipientinfo = { docrecipient } 'create documentcreationinfo , assign array recipients field dim doccreationinfo documentcreationinfo = new documentcreationinfo doccreationinfo .recipients = recipients .name = path.getfilename(file.name) .message = testmessage .fileinfos = fileinfos .signaturetype = signaturetype.esign .signatureflow = signatureflow.sender_signature_not_required end
Comments
Post a Comment