Solved

Auto-Fill PDF form with values from VFP application

Posted on 2010-11-19
7
1,981 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Getting information about Fonts being used in a PDF file A colleague of mine recently faced an issue related to the PDF file format. The PDFs were containing mission critical client information, they were successfully mailed but there was a sm…
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…

746 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

11 Experts available now in Live!

Get 1:1 Help Now