[Mono-bugs] [Bug 79992][Nor] New - [Win32] PrinterSettings complains about (incorrect) invalid settings
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Nov 20 12:35:04 EST 2006
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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79992
--- shadow/79992 2006-11-20 12:35:04.000000000 -0500
+++ shadow/79992.tmp.13644 2006-11-20 12:35:04.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 79992
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: shana.ufie at gmail.com
+ReportedBy: atsushi at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [Win32] PrinterSettings complains about (incorrect) invalid settings
+
+On Windows I'm getting InvalidPrinterException from a valid printer
+settings (at least .net does not complain that).
+
+Actual Result:
+
+$ mono --debug ./swf-printing.exe
+
+Unhandled Exception: System.Drawing.Printing.InvalidPrinterException: Tried
+to access printer 'EPSON PM-890C' with invalid settings.
+ at System.Drawing.Printing.PrinterSettings.get_PaperSizes () [0x00047] in
+C:\cygwin\home\atsushi\svn\mcs\class\System.Drawing\System.Drawing.Printing\PrinterS
+ettings.cs:391
+ at System.Drawing.Printing.PrintingServicesWin32.LoadPrinterSettings
+(System.String printer, System.Drawing.Printing.PrinterSettings settings)
+[0x000fe] in
+C:\cygwin\home\atsushi\svn\mcs\class\System.Drawing\System.Drawing.Printing\PrintingServicesWin32.cs:91
+ at System.Drawing.Printing.PrinterSettings..ctor (System.String printer)
+[0x00013] in
+C:\cygwin\home\atsushi\svn\mcs\class\System.Drawing\System.Drawing.Printing\PrinterSettings.cs:73
+ at System.Drawing.Printing.PrinterSettings..ctor () [0x00000] in
+C:\cygwin\home\atsushi\svn\mcs\class\System.Drawing\System.Drawing.Printing\PrinterSettings.c
+s:64
+ at System.Drawing.Printing.PageSettings..ctor () [0x00000] in
+C:\cygwin\home\atsushi\svn\mcs\class\System.Drawing\System.Drawing.Printing\PageSettings.cs:59
+ at System.Drawing.Printing.PrintDocument..ctor () [0x00011] in
+C:\cygwin\home\atsushi\svn\mcs\class\System.Drawing\System.Drawing.Printing\PrintDocument.cs:54
+
+ at (wrapper remoting-invoke-with-check)
+System.Drawing.Printing.PrintDocument:.ctor ()
+ at print_tester.Form1..ctor () [0x00000]
+ at (wrapper remoting-invoke-with-check) print_tester.Form1:.ctor ()
+ at print_tester.Form1.Main () [0x00000] in
+C:\cygwin\home\atsushi\svn\winforms\printing\swf-printing.cs:83
+
+--------
+
+Actually on my box Win32DocumentProperties (IntPtr.Zero, IntPtr.Zero,
+printer, IntPtr.Zero, IntPtr.Zero, 0) returns 0, which is regarded as
+invalid in PrintingServiceWin32.cs (line 54).
+
+A call to Marshal.GetWin32LastError() immediately after that line also
+returned 0 (i.e. no error).
More information about the mono-bugs
mailing list