Bug 365457 - Cannot Print in Landscape
Summary: Cannot Print in Landscape
Status: CONFIRMED
Alias: None
Product: Mono: Class Libraries
Classification: Mono
Component: Sys.Drawing. (show other bugs)
Version: 1.9
Hardware: PC Windows XP
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: printing
Depends on:
Blocks:
 
Reported: 2008-02-28 03:40 UTC by Marc Glenn Jamon
Modified: 2011-06-24 18:01 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
MyPrinter.cs (2.36 KB, text/plain)
2008-02-28 03:41 UTC, Marc Glenn Jamon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Glenn Jamon 2008-02-28 03:40:24 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.
Comment 1 Marc Glenn Jamon 2008-02-28 03:41:46 UTC
Created attachment 197578 [details]
MyPrinter.cs