Print Document reduction

Russell Padgett 21 Reputation points
2021-07-06T23:15:25.473+00:00

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  

112200-image.png

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,567 questions
{count} votes