Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim bm As New Bitmap(Me.dgview.Width, Me.dgview.Height) dgview.DrawToBitmap(bm, New Rectangle(0, 0, Me.dgview.Width, Me.dgview.Rows.Count)) e.Graphics.DrawImage(bm, 0, 0) End Sub
DataGridViewExtension
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)