[Mono-bugs] [Bug 82325][Nor] New - PreviewPrintController Dpi settings problem

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Aug 5 08:40:09 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vlad.dimitrov at gmail.com.


--- shadow/82325	2007-08-05 08:40:09.000000000 -0400
+++ shadow/82325.tmp.19826	2007-08-05 08:40:09.000000000 -0400
@@ -0,0 +1,31 @@
+Bug#: 82325
+Product: Mono: Class Libraries
+Version: 1.0
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: vlad.dimitrov at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: PreviewPrintController Dpi settings problem
+Description of Problem:
+System.Drawing.Printing.PreviewPrintController.OnStartPage returns 
+Graphics object that has Dpi settings that default to the system ones (the 
+display ones AFAIK). MS.NET on the other hand return the Dpi settings of 
+the printer.
+I and Sebastien discovered this while searching for the reason why 
+Graphics.MeasureString returns different sizes for the same string during 
+print preview and actual print.
+I will attach a test case that runs on MS.NET and Mono and prints the 
+string size and the Dpi setting doring print preview and print.

More information about the mono-bugs mailing list