When I try to print with a disconnected network printer the exception is shown as un unhandled exception.
This is the line:
DevExpress.XtraPrinting.PSMessageBox.ShowException(String text, String caption, UserLookAndFeel lookAndFeel)
¿Why doesn't appears the message box?
Regards.
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 Luis,
Most likely this behavior is by design. The PSMessageBox works differently in different scenarios.
When the exception is caused by the execution of a certain PrintingSystem command (for example :pressing the "Print" button on the PrintPreview), it will show a message box.
But, if you call the XtraReport.Print() method, it will rise the corresponding exception and you will need to catch it manually in your code.
Thanks,
Andrew
Hi.
I make it from the button in the printPreview of a PrintRibbonController.
The PrintRibbonController is in a RibbonForm. I make a ShowDialog() of the ribbonForm and i press the print (with options) button. I select a diferent printer (that is disconnected) in the print options dialog and i press the print button. I don't call the XtraReport.Print() method.
Regards.
Hello.
Why the messsage box caption is 'Xtra Printing'?
The caption could be the document tittle or the window caption.
Why does not appear the error?
The user can know the error and it is impossibe to repair.
Why the message box appears on task bar?
The message box appeas in the task bar as 'XtraPrinting'. It shouldn't appear.
Regards.
Hi Luis,
Your question will be answered in this thread:
An error is raised when trying to print on the disconnected printer.
Thanks,
Alex