将DataGrid转换为PDF文件?

问题描述:

从wpf中的datagrid创建pdf .........................

create a pdf from datagrid in wpf.........................

请参阅我对问题"的评论(不,这不是一个真正的问题).对于PDF生成,您可以更准确地使用iText,其.NET端口称为iTextSharp:
http://en.wikipedia.org/wiki/IText [ http://itextpdf.com/ [ ^ ],
http://sourceforge.net/projects/itextsharp/ [
Please see my comment to the "question" (no, this is not really a question). For PDF generation, you can use iText, more exactly, its .NET port called iTextSharp:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^].

The link to iText is not redundant: nearly all documentation is still there. It''s for Java, but you should easily understand it.

Good luck,
—SA


^ ]
http://stackoverflow.com/questions/4720463/how- to-export-from-datatable-to-pdf-in-wpf [
How to Transfer Data From Datagrid View To PDF using Dataset[^]
http://stackoverflow.com/questions/4720463/how-to-export-from-datatable-to-pdf-in-wpf[^]


本文介绍了如何使用向导将数据导出到PDF和其他文件格式.另外,作者提供了源代码.也许对您有帮助.

无需自动化即可将数据导出到Excel,Word,PDF来自数据库 [
This article presents how to use a wizard to export data to PDF and other file formats. Also, the author give the source code. Maybe it is helpful for you.

Export Data to Excel, Word, PDF without Automation from DataBase[^]