Hello, Further test with a simple plot figure does print correctly. So this issue is somehow related to a larger window GUI with multiple objects including a plot. There are three push buttons and list boxes. The push buttons have call backs. One to open a windows file dialog window. Which works correctly. The call back routine includes code to read an Excel file, plot data, and fill the list boxes with data. The second push button closes the Scilab session. This works correctly. The third push button includes the printfigure(get(gcf(), "figure_id")) command. This command opens the windows print dialog correctly. However, when the dialog print selection is clicked the following Java exception occurs.
printfigure: A Java exception arisen: Exception when calling Java method : org.scilab.modules.gui.bridge.tab.SwingScilabStaticPanel cannot be cast to org.scilab.modules.gui.bridge.tab.SwingScilabDockablePanel at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown Source) org.scilab.modules.gui.bridge.tab.SwingScilabStaticPanel cannot be cast to org.scilab.modules.gui.bridge.tab.SwingScilabDockablePanel at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown Source) Hope this helps troubleshoot the Scilab environment. Please advise, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
