Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Problem with printing form in visual studio 2012

$
0
0

With respect 

I have created form with size 1620;920 and now I like to print it.

I use this code:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


        Me.PrintForm1.PrinterSettings.DefaultPageSettings.Landscape = True
        PrintForm1.PrinterSettings.DefaultPageSettings.Margins = New System.Drawing.Printing.Margins(0, 0, 0, 0)
        Me.PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
        Me.PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.FullWindow)

    End Sub

and when i press print button  i see half form 

How to solve this problem?

Thank you in advance




Viewing all articles
Browse latest Browse all 12583

Trending Articles



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