I'm trying to print my windows form using VB.NET PowerPacks PrintForm. Below is the code I'm using to print the form. When I print the form it is not filling the full page no matter how long I make the Form's height, it leaves the space at the bottom. Is it possible to make it print a full A4 sheet instead of just 3/4 of the page?
Private Sub printButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.DoubleClick
PrintForm1.Form = Me
'PrintForm1.PrinterSettings.Copies = 1
PrintForm1.PrinterSettings.DefaultPageSettings.Margins = New Printing.Margins(3, 3, 3, 3)
PrintForm1.PrinterSettings.DefaultPageSettings.PaperSize.RawKind = Printing.PaperKind.A4
PrintForm1.PrinterSettings.DefaultPageSettings.Landscape = False
PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
End Sub