PrintDocument (PDF) horizontally VB

0

I have a printdocument that makes my PDF with the sheet vertically (standing) I would like to leave this sheet horizontal (lying down)

My code that I use to generate PDF

Dim ppd As New PrintPreviewDialog
    ppd.WindowState = FormWindowState.Maximized
    ppd.Document = PrintDocument1
    ppd.ShowDialog()

Does anyone have any idea how I leave the sheet horizontal?

    
asked by anonymous 04.06.2018 / 15:56

1 answer

0

It was this missing code

PrintDocument1.DefaultPageSettings.Landscape = True

Now the sheet is horizontal

    
04.06.2018 / 17:23