Printing a datagridview
I am trying to print a datagridview which will get values from the database, I was able to do that but I don't know why the columns name are not showing up after I print it. Below is the code that I am currently using: This one is for the printdocument: Private Sub PrintDocument1_PrintPage(sender As Object, e As Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage With DataGridView3 Dim fmt As StringFormat = New StringFormat(StringFormatFlags.LineLimit) Dim text As String = ("TrashCollection - Estatísticas") fmt.LineAlignment = StringAlignment.Center fmt.Trimming = StringTrimming.Elli
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.