Solved

Auto-Fill PDF form with values from VFP application

Posted on 2010-11-19
7
2,009 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

The ability to edit PDF documents can be useful, however it may not be a straight forward process. Many non-technical people don't realise that a PDF document is basically an image rather than a text file, even if it contains nothing but text. If…
PaperPort is a popular document imaging/management product from Nuance Communications (http://www.nuance.com/). It is in widespread use by both individuals (http://www.nuance.com/for-individuals/by-product/paperport/index.htm) and businesses (http:/…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

809 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