Andy, I tried putting some Debug.Write lines in the DataGridPrinter.vb file but nothing would show up on the output window. I dont know how to do break points
If it's any help, this is the code in the Print button on the form which displys the contents of the database
Code:If GridPrinter Is Nothing Then GridPrinter = New DataGridPrinter(Me.DataGridView1) End If 'setting properties of dgview (after adding gridprinter ) With GridPrinter .HeaderText = CStr("Report Dated - " & Today) .HeaderHeightPercent = CInt(5) .FooterHeightPercent = CInt(0) .InterSectionSpacingPercent = CInt(3) .PagesAcross = CInt(2) End With 'printpreview prinout With Me.PrintPreviewDialog1 .Document = GridPrinter.PrintDocument If .ShowDialog = DialogResult.OK Then GridPrinter.Print() End If End With




Reply With Quote