如何使用C#在dekstop应用程序中动态生成PDF [英] How to dynamically generate PDF in dekstop application using C#

查看:64
本文介绍了如何使用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


这篇关于如何使用C#在dekstop应用程序中动态生成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆