Set print orientation to landscape
i already can create a print to print a file in my windows forms. However, whenever i add this code: printDialog.PrinterSettings.DefaultPageSettings.Landscape = true; I can't see the Orientation of the page become LandScape, it is still Portrait. How do I make it LandScape as default? So, whenever i click PrintPreview or PrintFile, the Orientation of the page will become LandScape, not Portrait. Here is the code: private void PrintPreview(object sender, EventArgs e) { PrintPreviewDialog _PrintPreview = new PrintPreviewDialog(); _PrintPreview.Document = printDocument1; ((Form)_PrintPreview).Win
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.