如何使用C#在dekstop应用程序中动态生成PDF

如何使用C#在dekstop应用程序中动态生成PDF

问题描述:

我正在做一个独立应用程序的项目.我正在使用WPF.我是WPF的新手.
如何动态生成PDF文件(其中将包含从表中检索到的数据)
在这样的应用中?我正在使用Visual Studio 2010和SQL Server 2008
有人帮我吗?

I am doing a project which is a standalone application.I am using WPF.I am new to WPF.
How to dynamically generate PDF file(which will contain data retrieved from tables)
in such application? I am using Visual studio 2010 & SQL server 2008
Anybody help me?

此问题与WPF无关.您需要处理数据而不是UI,并使用PDF格式显示此数据.我建议使用开放源代码库iText,更确切地说是其.NET
请参阅:
http://en.wikipedia.org/wiki/IText [ http://itextpdf.com/ [ ^ ],
在此处下载: http://sourceforge.net/projects/itextsharp/ [
This issue has nothing to do with WPF. You need to work with data, not UI, and present this data using PDF format. I would recommend using the open source library iText, more exactly, its .NET
Please see:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
download it here: http://sourceforge.net/projects/itextsharp/[^].

The iText reference (the original project was written in Java) is still needed, because the documentation is mostly there.

—SA