Question : Programmatically FIll Out a PDF Form

I would like fill out a PDF form programmatically using Visual Foxpro 9.

see attach pd document.

Thanks.

Answer : Programmatically FIll Out a PDF Form

You may do it several different ways:

OLE Automation:
- requires Acrobat professional because Acrobat reader does not support it
- requires to know all input field names and assign the text to these fields
- example for dummies: http://www.experts-exchange.com/Web_Development/Document_Imaging/Adobe_Acrobat/Q_22614618.html

Windows scripting shell:
- probably the worst option for your form
- sends keystrokes from VFP to selected window
- requires exact definition of all input fields in PDF
- not suitable for complex forms
- example of scripting (not for Acrobat Reader but logic is the same): http://www.experts-exchange.com/Microsoft/Applications/Q_24242311.html

VFP Report saved as PDF:
- probably the best option for VFP programmer
- design your own form as VFP report and fill it by data from a table
- send the report output to PDF file
- documentation about VFP reporting:
eBook+Paperback: http://www.hentzenwerke.com/catalog/vfprw.htm
eBook: http://www.hentzenwerke.com/catalog/flyingfox.htm
Random Solutions  
 
programming4us programming4us