Current filter:
                                You should refresh the page.
                                  • Hi,

                                    We are getting the following error when calling Report.PrintDialog(). The print form then appears but with no printers enumerated. The operating system this occurs on is Windows 8.1 Do you have any ideas?


                                    System.InvalidOperationException: Sequence contains no

                                    System.Linq.Enumerable.First[TSource](IEnumerable`1 source)

                                    at DevExpress.XtraEditors.Preview.PrintEditorController.LoadForm()

                                    sender, EventArgs e)

                                    at System.Windows.Forms.Form.OnLoad(EventArgs

                                    at DevExpress.XtraEditors.XtraForm.OnLoad(EventArgs

                                    at System.Windows.Forms.Form.OnCreateControl()

                                    System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

                                    at System.Windows.Forms.Control.CreateControl()

                                    System.Windows.Forms.Control.WmShowWindow(Message& m)

                                    at System.Windows.Forms.Control.WndProc(Message&

                                    System.Windows.Forms.ScrollableControl.WndProc(Message& m)

                                    System.Windows.Forms.ContainerControl.WndProc(Message& m)

                                    System.Windows.Forms.Form.WmShowWindow(Message& m)

                                    at System.Windows.Forms.Form.WndProc(Message&

                                    DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)

                                    System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

                                    System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

                                    System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
                                    wparam, IntPtr lparam)

                                Show all comments
                                • Andrew L (DevExpress Support) 02.06.2014

                                  Hello Adam,

                                  This issue sounds like an issue in the current form implementation.
                                  I'm afraid that we haven't managed to reproduce it locally.
                                  Would you please provide us with the Printer model/drivers version installed on your system and clarify the default printer?

                                • Adam Lonsdale. 02.07.2014

                                  I’ve done some more testing on this and it only goes wrong when I am using the Kyocera 2020D in support.

                                  Further, it only raises an issue if the 2020D is my default printer. If it is not the default, the form loads OK and I can select the printer without issue.

                                  O/S: Windows 8.1 x64
                                  Printer: Kyocera FS-2020D
                                  Driver: Kyocera FS-2020D
                                  Connection: Shared printer on Windows Server 2003 (which in turn has the printer installed/connected using TCP/IP sockets)

                                • Andrew L (DevExpress Support) 02.07.2014

                                  Hello Adam,

                                  I have downloaded the latest drivers from the Kyocera website and installed it on a machine with Windows 8.1 (x64), but without success. The Print Dialog was displayed properly. Please try to update to the latest Kyocera drivers ( and let us know the results.

                                • Rudy De Maeyer 02.13.2014

                                  I'm afraid several of our customers are experiencing exactly the same problem, the last one i saw had a Kyocera printer also.
                                  I have attached a screen recording and i'm including our stacktrace.

                                  The problem not only occurs with xtrareports, but also with the print function of the richeditor, as you can see on the screen recording.

                                  Reeks bevat geen elementen
                                  InvalidOperationException Enumerable
                                  bij System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
                                  bij DevExpress.XtraEditors.Preview.PrintEditorForm.GetPrinterItem(String fullName)
                                  bij DevExpress.XtraEditors.Preview.PrintEditorController.LoadForm()
                                  bij DevExpress.XtraEditors.Preview.PrintEditorForm.PrintEditorForm_Load(Object sender, EventArgs e)
                                  bij System.Windows.Forms.Form.OnLoad(EventArgs e)
                                  bij DevExpress.XtraEditors.XtraForm.OnLoad(EventArgs e)
                                  bij System.Windows.Forms.Form.OnCreateControl()
                                  bij System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
                                  bij System.Windows.Forms.Control.CreateControl()
                                  bij System.Windows.Forms.Control.WmShowWindow(Message& m)
                                  bij System.Windows.Forms.Control.WndProc(Message& m)
                                  bij System.Windows.Forms.ScrollableControl.WndProc(Message& m)
                                  bij System.Windows.Forms.Form.WmShowWindow(Message& m)
                                  bij System.Windows.Forms.Form.WndProc(Message& m)
                                  bij DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
                                  bij System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
                                  bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
                                  bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

                                • Dmitry Tok (DevExpress Support) 02.13.2014

                                  Hello Rudy,
                                  Unfortunately, I wasn't able to view the provided screencast because of a missing codec and installing this codec doesn't help. Would you please provide us with another video demonstrating this issue? You can use the free Jing tool for recording.
                                  In addition, please specify the version of our components that you're currently using.

                                • Rudy De Maeyer 02.14.2014

                                  we are using version 13.2.27.
                                  In the meanwhile i have done some more testing and was able to pinpoint it further. The customer has a network printer connected with an ip address. The printer is installed on the server, and the client uses the shared printer on the server. When i install the printer locally and connect to the ip-address directly instead of using the shared print queue on the server, then everything works correctly.
                                  The printer that is shared on the server has very basis interface options and looks very generic, while the locally installed printer driver has a lot of configuration options.

                                  i have no other screancast i'm sorry.

                                • Adam Lonsdale. 02.14.2014

                                  That also matches with our current situation. Kyocera installed on the server and connected to the PC using IP Address using the server's shared print queue.

                                1 Solution

                                Creation Date Importance Sort by


                                It seems that the same task was discussed in the Q559282: XtraReports - PrintDialog - KeyNotFoundException occurs after pressing the Print button thread. So, please refer to that thread, and post all further comments there.