Solved

Pdf form auto fill at runtime

Posted on 2010-11-15
3
568 Views
Last Modified: 2012-08-14
Hej Experts,

I am building a web application using asp.net and C# and i have some pdf forms that are listed and i want to build functionality so that user choses a form and clicks "fill" and form gets filled from customer data which is stored in db.

Can somone please show direction about how cud it be possible?

Please note that aim is not to generate a pdf from html but rather edit in existing pdf and make some kind of Field mapping to form fields!!

Thanks in advanced :).
0
Comment
Question by:hussainAbid
3 Comments
 
LVL 3

Accepted Solution

by:
Epitel0920 earned 250 total points
ID: 34176456
Could http://kuujinbo.info/cs/itext_fill.aspx be what you are looking for.
0
 
LVL 10

Assisted Solution

by:GeoffSutton
GeoffSutton earned 250 total points
ID: 34247605
This will help you out:
http://www.codeproject.com/KB/aspnet/Creating_PDF_documents_in.aspx

You need to download a plugin from Sourceforce call iTextSharp.  Then in your PDF Files you need to place label controls which can be accessed and filled at runtime.  The control names are very picky and case sensitive, but it works very well once you get the naming straight.

Another option you may want to use is the built in Crystal reports, which will allow you to generate custom PDF's based on the data passed in.  That data can be pulled from an application dataset or from a custom query in the report.  This is the approach you want to use as it is a tried and true .net plugin that has been thoroughly tested.  iTextSharp is an "In Development" item that is completed but no guarantees it hasn't been changed since I used it last.

HTH,
Geoff
0
 

Author Closing Comment

by:hussainAbid
ID: 34247752
I did not get advice on how to unlock locked files (pdf) for example official form.

Answer I found out is to use the same pdf as background and use a third part PDF makers like Nitro PDF maker for example and place control in pdf and then use ItextSharp to auto complete. Thanks
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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

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

15 Experts available now in Live!

Get 1:1 Help Now