Set print orientation to landscape

后端 未结 2 1750
无人共我
无人共我 2021-01-12 12:20

i already can create a print to print a file in my windows forms. However, whenever i add this code:

printDialog.PrinterSettings.DefaultPageSettings.Landscap         


        
2条回答
  •  半阙折子戏
    2021-01-12 12:53

    try setting the Landscape of PrintDocument as follows,

    printDocument1.DefaultPageSettings.Landscape = true;
    

提交回复
热议问题