How to print the datagridview results in vb.net?

試著忘記壹切 提交于 2019-12-23 03:31:51

问题


I have a datagridview on a form and a print button below it...i want that when i click the print button the print dialog should appear and the datagrid results should be printed...How can it be done??Can anyone tell me??


回答1:


<a href="JavaScript:window.print();">Print this page</a>

You might also want to investigate using separate stylesheets for printing and screen by using the media attribute. This will provide better printing results.



来源:https://stackoverflow.com/questions/7235853/how-to-print-the-datagridview-results-in-vb-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!