Using the toolkit and the following code to stuff values into the pdf. Staic field names are not a problem. Dynamic field names coming from an array does...
Getting an exception occurred error on
An exception occurred: 'objFDF.FDFSetValue'
'create the FDF 3rd party dll object
Set FDFAcX = Server.CreateObject("FDFApp.FDFApp")
Set objFDF = FDFAcX.FDFCreate
' SET THE FULL ABSOLUTE URL OF YOUR PDF FILE
'*****************************************************
objFDF.FDFSetFile Server.MapPath("/pdf/"& FormName)
' USE THE FDFSetValue METHOD TO POPULATE THE PDF's FORM FIELDS
'*********************************************************************
' PDF form field name, Value you want entered, a value used to
comply
' with Adobe Acrobat version 3.0 and below.
' objFDF.FDFSetValue "1_NAME_OF_CLAIMANT_Last_F", strName, False
for x = 0 to ubound(DataArray,1)
'replace the address commas (if ,,) with one single comma
if instr(DataArray(x,0),"address")>1 then DataArray(x,1) =
replace(DataArray(x,1),",,",",")
' response.write DataArray(x,0)&"::"& DataArray(x,1)&"
"
' response.write "objFDF.FDFSetValue "& DataArray(x,0) & ", " &
DataArray(x,1)& ", False
":response.flush
objFDF.FDFSetValue DataArray(x,0), DataArray(x,1), False
next
Please help me.....aaahhhhhhhhhhhhhh!