Bugzilla – Bug 365457
Cannot Print in Landscape
Last modified: 2011-06-24 18:01:06 UTC
Description of Problem: When using System.Drawing.Printing.PrintDocument class to print a string in landscape orientation, setting the property PrintDocument.DefaultPageSettings.Landscape = true still prints the string in portrait orientation. Steps to reproduce the problem: 1. Compile the attached MyPrinter.cs using gmcs(mono-version=(1.2.5.1 or 1.9) gmcs MyPrinter.cs -r:System.Drawing 2. Run binary MyPrinter.exe mono MyPrinter.exe Actual Results: String printed in portrait orientation. Expected Results: String printed in landscape orientation. How often does this happen? Always. Additional Information: MyPrinter.cs uses the default printer installed in the windows machine.
Created attachment 197578 [details] MyPrinter.cs