且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在vb.net中打印Datagridview超过20列

更新时间:2023-09-21 21:43:28

您好,



可能是高度和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.