Print Document reduction
Russell Padgett
21
Reputation points
I currently have the below code to print active form in my Visual Studio 2019 project. It works 'sortof'. It prints out about 60% of the screen (starting at the upper left corner of the screen). Is there a way to print the entire screen by resizing the document to 60%.
Private Sub Button2Print_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2Print.Click
Try
PrintDocument1.DefaultPageSettings = printsetting
PrinterSettings.PrintAction = PrintAction.PrintToPrinter
PrinterSettings.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
Me.Refresh()
Catch ex As Exception
End Try
PrintDocument1.Print()
End Sub