[Mono-bugs] [Bug 79835][Nor] Changed - PageSetupDialog: ArgumentNullException in swf-printing sample

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Nov 15 09:22:02 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 alex.olk at googlemail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79835

--- shadow/79835	2006-11-14 19:32:43.000000000 -0500
+++ shadow/79835.tmp.32039	2006-11-15 09:22:02.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 79835
 Product: Mono: Class Libraries
 Version: 1.0
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Windows.Forms
 AssignedTo: shana.ufie at gmail.com                            
 ReportedBy: alex.olk at googlemail.com               
 QAContact: mono-bugs at ximian.com
@@ -100,6 +100,81 @@
 patch
 
 
 ------- Additional Comments From shana.ufie at gmail.com  2006-11-14 19:32 -------
 The PageSetup should throw an InvalidPrinterException if there are no
 printers installed. Fixed in rev. 67880 or through the patch above
+
+------- Additional Comments From alex.olk at googlemail.com  2006-11-15 09:22 -------
+Hmm, now I get System.Drawing.Printing.InvalidPrinterException: No
+Printers Installed.
+
+I guess that shouldn't happen when there is at least one printer (in
+my case a Epson Stylus-Photo 810) installed.
+
+Here is the complete stacktrace:
+
+Unhandled Exception: System.Drawing.Printing.InvalidPrinterException:
+No Printers Installed
+  at System.Drawing.Printing.PrinterSettings.get_PaperSizes ()
+[0x00047] in
+/home/alex/develop/mcs/class/System.Drawing/System.Drawing.Printing/PrinterSettings.cs:391
+
+  at System.Windows.Forms.PageSetupDialog.SetPrinterDetails ()
+[0x00027] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs:472
+
+  at System.Windows.Forms.PageSetupDialog.RunDialog (IntPtr hwnd)
+[0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PageSetupDialog.cs:194
+
+  at System.Windows.Forms.CommonDialog.ShowDialog (IWin32Window
+ownerWin32) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs:107
+
+  at System.Windows.Forms.CommonDialog.ShowDialog () [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs:102
+
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.CommonDialog:ShowDialog ()
+  at print_tester.Form1.filePageSetupMenuItem_Click (System.Object
+sender, System.EventArgs e) [0x0002c] in
+/home/alex/develop/winforms/printing/swf-printing.cs:64 
+  at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs
+(object,System.EventArgs)
+  at System.Windows.Forms.MenuItem.OnClick (System.EventArgs e)
+[0x0000b] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs:456
+
+  at System.Windows.Forms.MenuItem.PerformClick () [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs:496
+
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.MenuItem:PerformClick ()
+  at System.Windows.Forms.MenuTracker.OnMouseUp
+(System.Windows.Forms.MouseEventArgs args) [0x0005e] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs:191
+
+  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&
+m) [0x006ca] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1949
+
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:182
+
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x0006b] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:159
+
+  at System.Windows.Forms.XplatUIX11.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2929
+
+  at System.Windows.Forms.XplatUI.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:428
+
+  at System.Windows.Forms.Application.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:447


More information about the mono-bugs mailing list