Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic load of PDF with FDFToolkit problem

Status
Not open for further replies.

Bastien

Programmer
May 29, 2000
1,683
CA
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!




Bastien

I wish my computer would do what I want it to do,
instead of what I tell it to do...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top