Hello DevExpress-Team,
we have a problem while we print on an offline-printer, and we think this problem and the exeption send should be catched and handled by your DevExpress.XtraPrinting.dll.
The problem is when you try to print on an offline printer an exeption is thrown (Please have a look to the attached screenshot). This i.e. happens when the default-printer is currently offline, and the DevExpress.XtraPrinting.dll does not handle this exeption (but we think it should with i.e. a messagebox or opening the printer-selection-dialog or something like that), because when you print via the printer-selection-dialog, and then select the currently offline printer, you do not allow to print on this this printer by deactivating the ok and apply-button.
Thanks in advance for a comment to this behavior.
Greetings
Dirk
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Dirk,
Thank you for the report.
I am afraid I cannot find an appropriate solution to your problem without additional information. Can you please post here full stack trace of this exception? This will make that situation clearer.
Thanks,
Elliot
Hello Elliot,
here is the full exeption stack.
Greeting,
Dirk
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.
************** Ausnahmetext **************
System.Drawing.Printing.InvalidPrinterException: Kein Drucker installiert.
bei System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal()
bei System.Drawing.Printing.PrinterSettings.GetHdevmode(PageSettings pageSettings)
bei System.Drawing.Printing.PrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
bei System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPrint(PrintDocument document, PrintEventArgs e)
bei System.Drawing.Printing.PrintController.Print(PrintDocument document)
bei System.Drawing.Printing.PrintDocument.Print()
bei DevExpress.XtraPrinting.PrintingSystemBase.PrintDocument(PrintDocument pd)
bei DevExpress.XtraPrinting.PrintingSystem.Print(String printerName)
bei DevExpress.XtraPrinting.PrintingSystem.Print()
bei DevExpress.XtraReports.UI.XtraReport.UserTool.Print()
bei DevExpress.XtraReports.UI.XtraReport.Print()
bei Addison.App.Beratung.Rechenmaschine.Rechnerfenster.FunktionAusfuehrenRechenmaschine(Byte auszufuehrendeFunktion, DataTable tippstreifenAktuellUebergabe, TippstreifenEinstellungen tippstreifeneinstellungenUebergabe)
bei Addison.App.Beratung.Rechenmaschine.Rechnerfenster.barButtonItemDirektdruck_ItemClick(Object sender, ItemClickEventArgs e)
bei DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
bei DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)
bei DevExpress.XtraBars.BarItemLink.OnLinkClick()
bei DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
bei DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
bei DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
bei DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
bei DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
bei DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Geladene Assemblys **************
mscorlib
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3615 (GDR.050727-3600).
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
mscorlib.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3615 (GDR.050727-3600).
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
Addison.App.Beratung.Rechenmaschine
Assembly-Version: 9.6.2.0.
Win32-Version: 9.6.2.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Addison.App.Beratung.Rechenmaschine.exe.
----------------------------------------
System
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3614 (GDR.050727-3600).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
DevExpress.Utils.v9.3
Assembly-Version: 9.3.4.0.
Win32-Version: 9.3.4.10088.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/DevExpress.Utils.v9.3.DLL.
----------------------------------------
Addison.Skins
Assembly-Version: 1.0.0.0.
Win32-Version: .
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/Addison.Skins.DLL.
----------------------------------------
System.Windows.Forms
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
DevExpress.Data.v9.3
Assembly-Version: 9.3.4.0.
Win32-Version: 9.3.4.10088.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/DevExpress.Data.v9.3.DLL.
----------------------------------------
DevExpress.XtraGrid.v9.3
Assembly-Version: 9.3.4.0.
Win32-Version: 9.3.4.10088.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/DevExpress.XtraGrid.v9.3.DLL.
----------------------------------------
DevExpress.XtraBars.v9.3
Assembly-Version: 9.3.4.0.
Win32-Version: 9.3.4.10088.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/DevExpress.XtraBars.v9.3.DLL.
----------------------------------------
DevExpress.XtraEditors.v9.3
Assembly-Version: 9.3.4.0.
Win32-Version: 9.3.4.10088.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/DevExpress.XtraEditors.v9.3.DLL.
----------------------------------------
DevExpress.XtraLayout.v9.3
Assembly-Version: 9.3.4.0.
Win32-Version: 9.3.4.10088.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/DevExpress.XtraLayout.v9.3.DLL.
----------------------------------------
Addison.Resources.ImageCollections
Assembly-Version: 9.6.1.0.
Win32-Version: 9.6.1.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/Addison.Resources.ImageCollections.DLL.
----------------------------------------
DevExpress.XtraBars.v9.3.resources
Assembly-Version: 9.3.0.0.
Win32-Version: 9.3.0.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/de/DevExpress.XtraBars.v9.3.resources.DLL.
----------------------------------------
System.Xml
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3082 (QFE.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
DevExpress.XtraEditors.v9.3.resources
Assembly-Version: 9.3.0.0.
Win32-Version: 9.3.0.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/de/DevExpress.XtraEditors.v9.3.resources.DLL.
----------------------------------------
System.Data
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll.
----------------------------------------
DevExpress.XtraLayout.v9.3.resources
Assembly-Version: 9.3.0.0.
Win32-Version: 9.3.0.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/de/DevExpress.XtraLayout.v9.3.resources.DLL.
----------------------------------------
Addison.Resources.Images
Assembly-Version: 9.6.1.0.
Win32-Version: 9.6.1.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/Addison.Resources.Images.DLL.
----------------------------------------
System.Configuration
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
nxqaedif
Assembly-Version: 9.6.2.0.
Win32-Version: 2.0.50727.3614 (GDR.050727-3600).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
VistaDB.NET20
Assembly-Version: 3.3.1.57.
Win32-Version: 3.3.1.57.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/VistaDB.NET20.DLL.
----------------------------------------
Addison.Data.Common
Assembly-Version: 9.6.1.0.
Win32-Version: 9.6.1.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/Addison.Data.Common.DLL.
----------------------------------------
Addison.Data.VistaDB
Assembly-Version: 9.6.1.0.
Win32-Version: 9.6.1.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/Addison.Data.VistaDB.DLL.
----------------------------------------
Addison.Framework.Windows.MFCUIBase
Assembly-Version: 9.6.1.0.
Win32-Version: 9.6.1.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/Addison.Framework.Windows.MFCUIBase.DLL.
----------------------------------------
DevExpress.XtraReports.v9.3
Assembly-Version: 9.3.4.0.
Win32-Version: 9.3.4.10088.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/DevExpress.XtraReports.v9.3.DLL.
----------------------------------------
System.Web
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3618 (GDR.050727-3600).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll.
----------------------------------------
System.Design
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll.
----------------------------------------
DevExpress.XtraPrinting.v9.3
Assembly-Version: 9.3.4.0.
Win32-Version: 9.3.4.10088.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/DevExpress.XtraPrinting.v9.3.DLL.
----------------------------------------
DevExpress.XtraTreeList.v9.3
Assembly-Version: 9.3.4.0.
Win32-Version: 9.3.4.10088.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/DevExpress.XtraTreeList.v9.3.DLL.
----------------------------------------
DevExpress.Data.v9.3.resources
Assembly-Version: 9.3.0.0.
Win32-Version: 9.3.0.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/de/DevExpress.Data.v9.3.resources.DLL.
----------------------------------------
DevExpress.XtraPrinting.v9.3.resources
Assembly-Version: 9.3.0.0.
Win32-Version: 9.3.0.0.
CodeBase: file:///C:/Programme/Wago-Curadata/10it/Assemblies/de/DevExpress.XtraPrinting.v9.3.resources.DLL.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.1433 (REDBITS.050727-1400).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
System.Drawing.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.1433 (REDBITS.050727-1400).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing.resources/2.0.0.0_de_b03f5f7f11d50a3a/System.Drawing.resources.dll.
----------------------------------------
************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
Zum Beispiel:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
Hi Dirk,
I am afraid I cannot find an appropriate solution to your problem without additional information. Could you please try to run a sample from the attachment and let me know whether it works properly on your side? This example uses the standard PrintDocument control and simple test report. Thanks for your feedback in advance.
Thanks,
Elliot
Hello Elliot,
there is no sample project needed to show you this error. The only thing you have to do is to print i.e. from any report using a printer which is marked offline in the printer status from windows (please have a look to the attached picture of my first post) (the status has to be offline, not online or error or whatever, this error only happend when the printer status is offline).
You can i.e. set the standard printer to a printer which status is offline, and then print via the report from DevExpress by pressing the direct-print Button (please have a look to the attached picture).
Many thanks for your help,
Greetings,
Dirk
Hello Elliot,
since we planned to ship a new major release in December to our customers based on your DevExpress Version 10.1 I tested this new version against the error we get while printing on an offline printer, and voila, your team fixed this error.
Now it popped up a nice small message box which says that there is a problem with the printer.
This solved the problem for me and we can close this Bug Report.
Thanks for your patience with me,
Dirk
Fixed in 10.1
Hi Dirk,
I am glad to hear that this approach solves your issue. Please contact us in case of any difficulty.
Thanks,
Elliot