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 any开发者_如何学编程one tell me??
<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.
精彩评论