如何将datagridview vbnet导出到pdf文件 [英] how export datagridview vbnet to pdf file

查看:211
本文介绍了如何将datagridview vbnet导出到pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将多列datagridview vbnet导出为pdf文件...

解决方案





看看这里:

http:// vbprogramtips .blogspot.be / 2011/12 / pdf-from-datagridview-data-using.html [ ^ ]

datagridview to PDF by vb.net [ ^ ]


要生成一些PDF,您可以使用iText或其.NET端口,iTextSharp:

http://en.wikipedia.org/wiki/IText [ ^ ],

http://itextpdf.com/ [ ^ ],

http ://sourceforge.net/projects/itextsharp/ [ ^ ]。



包括对Java iText网站的引用,因为大多数文档都在那里。如果您了解C#,那么理解基于Java的API文档并不困难。



但是,我不确定您是否真的需要导出一些 DataGridView 内容。通常,此控件(无论是否绑定)用于表示应用程序的某些数据模型,这些模型本身来自数据层。也就是说,您应该实际拥有一些数据层,并在该数据层中导出功能,而不是在UI层中进行。



-SA

how export many column datagridview vbnet to pdf file...

解决方案

Hi,

Have a look here:
http://vbprogramtips.blogspot.be/2011/12/pdf-from-datagridview-data-using.html[^]
datagridview to PDF by vb.net[^]


To generate some PDF, you can use iText, or its .NET port, iTextSharp:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^].

In included the reference to Java iText site as well, because most documentation is there. If you understand C#, it would not be difficult to understand Java-bases API documentation.

However, I'm not sure you really need to export some DataGridView content. Usually, this control, bound or not, is used to represent some data model of your application, something which itself comes from data layer. That said, you should rather actually have some data layer, and export functionality in that data layer, instead of doing it in the UI layer.

—SA


这篇关于如何将datagridview vbnet导出到pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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