Am 18.10.2011 12:19, schrieb Hussein Shafie: > On 10/18/2011 10:12 AM, Yves Forkl wrote: >> >> one of our users can't print from XXE (i.e. print the styled view >> created by our configuration). >> >> With XXE 4.9.1 under Windows 7, after the user has selected the >> "Print" menu item, nothing at all happens. It is just like if the >> item had not been activated. >> >> The printer driver has been installed correctly and printing works >> fine from other applications. With XXE, however, the print queue >> does not respond in any way to XXE. >> >> What can I do to track down the cause of this problem?
> Generally when something fails, this almost never happens > ``silently''. In order to diagnose what's really happening, please > refer to this FAQ: --- XXE seems to freeze when I do such and such > action. What's going on? --- > http://www.xmlmind.com/xmleditor/faq.html#display_exception_in_console Thank you very much for your instant help, Hussein. In the meantime, we were able to solve the problem by these steps: first setting another printer as the Default Printer, then printing from XXE, then changing the Default Printer back to its original value. From this moment, printing to that printer worked. Don't ask me how or why, but that printer curiously has several printers (each with its own properties etc.) assigned to it. This might have confused the Java components in charge of retrieving the printer's property in the first place, I suppose. And thanks for reminding me of how to get hold of the exception stack trace. (I've done this before but forgot how.) Just for the record, the top of my stack trace reads: Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 7 at sun.print.Win32PrintService.getMediaTrays(Unknown Source) at sun.print.Win32PrintService.getSupportedAttributeValues(Unknown Source) at sun.print.RasterPrinterJob.updatePageAttributes(Unknown Source) at sun.print.RasterPrinterJob.setPrintable(Unknown Source) at com.xmlmind.xmleditapp.kit.part.PrintAction.init(PrintAction.java:84) at com.xmlmind.xmleditapp.kit.CancelableAction.doIt(CancelableAction.java:43) at com.xmlmind.xmleditapp.kit.AppAction.actionPerformed(AppAction.java:39) Yves -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

