I Have de same problem, but when I’m in Netbeans and run the program the code work, but when I’m compile the system and make my *.exe did work.
Some vary cant tell me why. This is the code PrinterJob pj = PrinterJob.getPrinterJob(); PageFormat pf = pj.defaultPage(); Paper paper = pf.getPaper(); paper.setSize(612, 264); paper.setImageableArea(0,0, 612, 264); pf.setPaper(paper); try { if (resF.getRow() != 0) { do { pj.setPrintable(new Printable() { int cont = 0; public int print(Graphics g, PageFormat pf, int pi) throws PrinterException { if (pi >= 1) { return Printable.NO_SUCH_PAGE; } procesarImpresion(g, resF, strSecuencia, strCodnomina, strCargInst, strCargDiv, strMensaje, booEstacerrada, booImprimirdetalles); return Printable.PAGE_EXISTS; } }, pf); try { pj.print(); } catch (PrinterException ex) { this.objUtl.message("information", "Error when processing "+ex) } } while(resF.next()); } else { this.objUtl.message("information", "Error when processing "+e) } } catch (Exception e) { this.objUtl.message("error", "Error when processing "+e) } } [Message sent by forum member 'janet_batlle' (janet_batlle)] http://forums.java.net/jive/thread.jspa?messageID=244848 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".