如何在vb.net中打印Datagridview超过20列 [英] How to Print Datagridview More than 20 columns in vb.net

查看:66
本文介绍了如何在vb.net中打印Datagridview超过20列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用Datagridview并绑定数据库中的数据,因此我需要打印Datagridview数据,因为Datagridview有20列。我正在使用一些打印功能但它只显示8列。所以any1帮助打印具有不同功能的所有列

Hi,
I am using Datagridview and bind data from database, So that i need to print the Datagridview Datas, As Datagridview has 20 columns.i am using some print function but it displayed only 8 columns. so any1 help to print the all columns with different function

推荐答案

您好,



可能是高度和datagridview的矩形区域的宽度,用于打印出错,这就是为什么,打印文档缺少额外的列。



参考下面的文章了解有关打印的更多信息datagridview数据。

如何进行DataGridView打印 [ ^ ]

如何在.NET中打印DataGridView [ ^ ]

在WinForms Windows窗体中打印DataGridView h C#VB.NET [ ^ ]

打印Windows窗体DataGridView [ ^ ]



希望它有所帮助。
Hi,

may the height and width of the rectangle area of the datagridview for printing going wrong, that is why, the print document is missing the extra columns.

refer below articles for more on printing the datagridview data.
How to DataGridView Printing[^]
How to print DataGridView in .NET[^]
Print DataGridView In WinForms Windows Forms With C# VB.NET[^]
Print Windows Forms DataGridView [^]

hope it helps.






如果在尝试提供的解决方案后列无法正确打印在上面,尝试将数据导出到excel文件。我更喜欢这样做,因为它允许对数据进行各种其他操作。



以下链接将帮助您将数据导出到Excel。

使用VB.Net导出到Excel [ ^ ]



希望你能得到一个好的印刷品..



快乐的编码。
Hi,

If the columns do not get printed correctly even after trying the solutions provided above, try exporting the data to excel file. I prefer doing so, as it allows various other operations to be done on data.

Following link will help you in exporting data to excel.
Export to Excel using VB.Net[^]

Hope you get a good print..

Happy coding.


这篇关于如何在vb.net中打印Datagridview超过20列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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