Drucken

Help
2010-06-26
2012-12-06
  • Hallo

    Die Druck Funktion geht bei mir ueberhaupt nicht. Wenn ich versuche in eine Datei zu drucken (pdf) passiert gar nichts und wenn ich auf einen echten Drucker drucke, erhalte ich eine exception (siehe unten).

    OS ist Win 7 Pro 64 Bit.

    Gibts da eine Loesung dazu?

    Gruesse Herbert

    java.lang.NullPointerException
    at net.sf.jdivelog.printing.PrinterOutputDevice.<init>(Unknown Source)
    at net.sf.jdivelog.gui.printing.PrintWindow.getSelectedOutputDevice(Unknown Source)
    at net.sf.jdivelog.gui.printing.PrintWindow.run(Unknown Source)
    at net.sf.jdivelog.gui.printing.PrintWindow.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.Dialog$1.run(Unknown Source)
    at java.awt.Dialog$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Unknown Source)
    at java.awt.Component.show(Unknown Source)
    at java.awt.Component.setVisible(Unknown Source)
    at java.awt.Window.setVisible(Unknown Source)
    at java.awt.Dialog.setVisible(Unknown Source)
    at net.sf.jdivelog.gui.MainWindow.print(Unknown Source)
    at net.sf.jdivelog.gui.MainWindow.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

     
  • Same with me!
    Gleiche bei mir!

     
  • André Schenk
    André Schenk
    2011-06-21

    Hi Ihr,

    ich habe ein paar Encodingprobleme gefixt, nun druckt es bei mir unter Windows 7 (32 Bit) in eine PDF-Datei. Mehr kann ich leider nicht testen. Falls Ihr es bei Euch ausprobieren möchtet: jar file.

    Ich würde mich über Euer Feedback freuen!

    Tschüß André

     
  • Hallo Andre

    Bei mir mit Win 7 64 Bit funktionierts nicht
    Wenn ich obiges jar im bin verzeichniss von jdivelog ersetze erhalte ich beim start folgende exception:
    java.lang.NoClassDefFoundError: com/toedter/calendar/JDateChooser
    at net.sf.jdivelog.gui.MainWindow.viewDive(MainWindow.java:286)
    at net.sf.jdivelog.gui.MainWindow$5.valueChanged(MainWindow.java:1208)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
    at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
    at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
    at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source)
    at javax.swing.JTable.changeSelectionModel(Unknown Source)
    at javax.swing.JTable.changeSelection(Unknown Source)
    at net.sf.jdivelog.gui.MainWindow$1.run(MainWindow.java:260)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: com.toedter.calendar.JDateChooser
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    … 19 more

    Eine aehnliche exception gibts auch beim drucken:
    java.lang.NoClassDefFoundError: com/toedter/calendar/JDateChooser
    at net.sf.jdivelog.gui.MainWindow.viewDive(MainWindow.java:286)
    at net.sf.jdivelog.gui.MainWindow$5.valueChanged(MainWindow.java:1208)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
    at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(Unknown Source)
    at javax.swing.plaf.basic.BasicTableUI$Handler.setValueIsAdjusting(Unknown Source)
    at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: com.toedter.calendar.JDateChooser
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    … 29 more

    Gruesse Herbert

     
  • André Schenk
    André Schenk
    2011-06-21

    Hallo Herbert,

    es sieht so aus, als würdest Du nicht die aktuelle Version von JDiveLog installiert haben.

    Kannst Du bitte zuerst den aktuellen Installer von www.jdivelog.org installieren und danach das Jar ersetzen?

    Tschüß André

     
  • Hallo Andre

    Ich habe schon die aktuelle 2.15 drauf. Ich habe nun trotzdem nochmal drueber installiert und erhalte nach dem ersetzen vom jar file immer noch die gleiche Fehlermeldung…

    Gruesse Herbert

     
  • André Schenk
    André Schenk
    2011-06-22

    Hallo Herbert,

    ok, sorry,  dann gibt es da wohl Änderungen, die erst nach dem Release 2.15 hinzugekommen sind. Probiere doch bitte mal den Installer.

    Tschüß André

     
  • Hallo Andre

    Jetzt funktioniert das Drucken. Kannst Du die Format auswahl noch um ein Format ergaenzen, bei welchem pro A5 Seite 2 TGs inkl Profil und den wichtigsten Daten gedruckt wird oder kann man das selber erweitern?
    Ich habe noch ein anderes Problem gefunden. Wenn ich auf den HTML export Button druecke kommt diese Fehlermeldung:
    Export Fehlgeschlagen! Designdatei existiert nicht

    Vielen Dank fuer deine Hilfe und fuer das tolle Programm!

     
  • Oh, ich habe das Problem mit dem Export selber verursacht. Ich habe mir mal ein modifiziertes export Layout gemacht und das hat gefehlt…

    Sorry…

     
  • André Schenk
    André Schenk
    2011-06-29

    Hallo Herbert,

    Du kannst das Druckformat anpassen, wenn Du kein Problem mit XSLT hast. Für die 4 Formate "List A4", "List A5", … gibt es je ein Stylesheet "divelist_a4.xsl", "divelist_a5.xsl", … Diese Stylesheets liegen im jdivelog.jar. Du mußt also zuerst das Stylesheet Deiner Wahl aus dem Jar extrahieren, dann nach Deinen Wünschen ändern und wieder ins Jar zurücklegen.

    Tschüß André