Solved

Auto-Fill PDF form with values from VFP application

Posted on 2010-11-19
7
1,994 Views
Last Modified: 2012-05-10
I have a pre-defined PDF form that has fields. I would like to auto-populate the fields with the data that was entered into a form in an Visual FoxPro application and then print the PDF form. Does anyone have a recommendation on how to do this? If so, do you have any source code examples that you would be willing to share?
Thanks in advance for any help.
 
0
Comment
Question by:Thomas Swaney
  • 3
  • 3
7 Comments
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 34180216
I am not familiar with FoxPro. Can you write programs in it comparable to VBA in MS applications? Can you access your FoxPro data from Visual Basic? If so, this is not very complicated, but I need to get an idea about how Dara is accessed first.
0
 
LVL 2

Author Comment

by:Thomas Swaney
ID: 34181105
You can access the data from VB but i would rather use strictly FoxPro. If you can show me how to do it with VB I can figure it out in FoxPro. I am also familiar with VB.
0
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 250 total points
ID: 34184445
A while ago I wrote a blog post about reading form field values via VBA. Writing is pretty much the same process. Take a look at my blog post at http://khkonsulting.com/2010/09/reading-pdf-form-fields-with-vba/ and the Acrobat IAC programming information at http://www.adobe.com/devnet/acrobat/interapplication_communication.html

If you do not have Acrobat, take a look at the iTextSharp library at http://sourceforge.net/projects/itextsharp/
You can find some information about how to do that with VB here: http://www.codeproject.com/KB/vb/CompleteFormFieldsOfPDFs.aspx
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 2

Author Comment

by:Thomas Swaney
ID: 34193443
Thanks khkremer. This does work as you suggested but the only other issue is that the PDF documents that I have to write to have password protected fields. I will award you the points but do you have any idea how to work around this? I really appreciate it.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 34198963
The fields are not password protected, it's the document. If you do have the password, you should be able to use iTextSharp. If you don't have the password, you may be able to use an earlier version of the iText library (4.0.3 and before): http://www.opensubscriber.com/message/itext-questions@lists.sourceforge.net/7709373.html
0
 
LVL 2

Author Closing Comment

by:Thomas Swaney
ID: 34202119
Thanks for you help!!
0
 

Expert Comment

by:jason126
ID: 37337826
can I get the foxpro code cause I am not familiar with VB?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Activating an OLE Program 10 19
Windows 10 Default PDF App Roaming Profiles 1 76
Delphi Dbf export problem to a Visual Foxpro application 6 162
Barcode detail gets lost in PDF 3 106
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe INTRODUCTION This article presents a solution to a question (http://www.experts-exchange.com/Programming/Installation/Q_28396542.html)…
*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now