Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).

New Forum | Previous | Next | (P-PDF) Developers

Topic: Dynamic form load problem with ASP FDFToolkit
Conf: (P-PDF) Developers, Msg: 127403
From: lostboy
Date: 2/9/2005 03:34 AM

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


objFDF.FDFSetFile ""& PDF_Name
' 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),",,",",")

objFDF.FDFSetValue DataArray(x,0), DataArray(x,1), False next

Its the last line that assigns the fieldname and the variable coming from the DataArray

Please help me.....aaahhhhhhhhhhhhhh!


Cat the other other white meat

PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
Platinum Sponsor

Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.


Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.