0

Hi, I was wondering if anybody could help me with printing a displayed form to a printer. This is my current code. (I am using the PrintForm visual basic PowerPack.)

Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click

        cPrintForm.PrintAction = Printing.PrintAction.PrintToPreview
        cPrintForm.Print()

    End Sub

This prints the form fine, but the problem is that the page printed is portrait, and my whole form doesn't fit on it, so I was wondering how to set it to landscape?

Thanks in advance.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Oxiegen
0

This is how you set landscape printing.

Dim settings As New System.Drawing.Printing.PrinterSettings
settings.DefaultPageSettings.Landscape = True
PrintForm1.PrinterSettings = settings
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.