Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27351

Printing using VB.NET

$
0
0
i have an application that am adding a print option in the menu strip. i want the application to be able to print everything on the form when i hit print. right now it only prints whats displayed on the screen but i want to print everything thats displayed. Here is the code i have have. it only allows me to print whats displayed and scroll down to print more. any help on how to print everything on the form is much appreciated.

Code:

Private Sub PrintPageToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintPageToolStripMenuItem.Click
   

        Dim settings As New System.Drawing.Printing.PrinterSettings
        PrintForm1.PrinterSettings = settings
        settings.DefaultPageSettings.Landscape = True

        PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview

        PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable)
end sub


Viewing all articles
Browse latest Browse all 27351

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>