从 VB.NET 应用程序填写 PDF 表单 [英] Fill in PDF Forms from VB.NET application
问题描述
我的任务是在 VB.Net 中创建一个 Windows 应用程序,其中一项要求是从 MSSQL 数据库读取数据,并将某些值放入 PDF 表单中.如何使用 VB.Net 将数据放入预先存在的 PDF 文件中?另外,是否可以将 PDF 文件作为资源放入而不是从外部调用它?
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?
推荐答案
Docotic.Pdf 库可用于填写 PDF 表单.
Docotic.Pdf library can be used for filling PDF forms.
该库的示例(可用的 C# 和 VB.NET 版本)展示了如何:
There are samples for the library (C# and VB.NET versions available) that show how to:
您可能会发现 将数据从数据库写入 PDF 博客条目对您的情况也很有用.
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.
这篇关于从 VB.NET 应用程序填写 PDF 表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!