I am being tasked with creating a Windows application in VB.Net, and one of the requirements is to read data from an MSSQL database, and put in certain values into a PDF form. How can I achieve putting data into a pre-existing PDF file using VB.Net? Also, is it possible to put the PDF file in as a resource instead of calling it externally?
Asked
Active
Viewed 5,998 times
2
-
You can't write a "native Windows application in VB.Net". Period. You need C/C++ for that. – Mitch Wheat May 24 '13 at 01:04
-
@MitchWheat Is there a better place I could ask this then? It's for a volunteer organization, and programming isn't my main job, just a skill I do in my spare time – Canadian Luke May 24 '13 at 01:09
-
This is the right place, it's just a question of semantics. I've removed the "native" reference in your question. For a possible solution, see below. :) – kdmurray May 24 '13 at 01:59
-
@kdmurray Thank you for the edit, and the help. – Canadian Luke May 24 '13 at 04:14
2 Answers
0
You may be able to take advantage of a 3rd party component like iTextSharp which is a PDF library. It's written in C#, but could be added to your existing solution as a separate project, or compiled and referenced as a library.
This library specifically references the ability to fill in PDF forms and should fit the bill for filling in your pre-existing PDF form programatically.

kdmurray
- 2,988
- 3
- 32
- 47
0
Docotic.Pdf library can be used for filling PDF forms.
There are samples for the library (C# and VB.NET versions available) that show how to:
And you might find Write data from a database to PDF blog entry useful in your case, too.
Disclaimer: I am one of the developers of the library.

Bobrovsky
- 13,789
- 19
- 80
- 130