Javax.print problem/question

Hello there! I'm trying to implement a printService. My service implements PrintJobListener, because my UC requires that the user be notified about print errors (printer off, out-of-papper etc.).
Problem is, the only method being called on PrintJobListener is printJobNoMoreEvents(PrintJobEvent pje) no matter if it succeeded or not.
Here's my clasess implementations:
PrintService (implements runnable ...)
public void run() {
          try {
               DocFlavor format = DocFlavor.BYTE_ARRAY.AUTOSENSE;
               Doc doc = new SimpleDoc(data,format,null);
               PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
               aset.add(new Copies(1));
               aset.add(MediaSizeName.ISO_A4);
               aset.add(Sides.ONE_SIDED);
               aset.add(PrintQuality.DRAFT);
               // obt�m servi�o de impress�o default
               PrintService service = PrintServiceLookup.lookupDefaultPrintService();
               DocPrintJob job = service.createPrintJob();
               PrintJobWatcher pjDone = new PrintJobWatcher(job,this);
               job.print(doc, null);
               pjDone.waitForDone();
               } catch (PrintException e) {
                    //TODO alterar o status do pedido
                    e.printStackTrace();
public class PrintJobWatcher {
      boolean done = false;
      private DrogatelPrintService printService;  
             PrintJobWatcher(DocPrintJob job, DrogatelPrintService service) {
                 job.addPrintJobListener(new PedidoJobListener());
                 this.printService = service;
             public synchronized void waitForDone() {
                 try {
                     while (!done) {
                         wait();
                 } catch (InterruptedException e) {
             private class PedidoJobListener implements PrintJobListener {
                  public void printDataTransferCompleted(PrintJobEvent pje) {
                       allDone();
                  public void printJobCanceled(PrintJobEvent pje) {
                       printService.atualizarStatusPedido(FasePedidoEnum.ERRO_IMPRESSAO);
                       allDone();
                  public void printJobCompleted(PrintJobEvent pje) {
                       printService.atualizarStatusPedido(FasePedidoEnum.IMPRESSO);
                       allDone();
                  public void printJobFailed(PrintJobEvent pje) {
                       printService.atualizarStatusPedido(FasePedidoEnum.ERRO_IMPRESSAO);
                       allDone();
                  public void printJobNoMoreEvents(PrintJobEvent pje) {
                       allDone();
                  public void printJobRequiresAttention(PrintJobEvent pje) {
                       printService.atualizarStatusPedido(FasePedidoEnum.ERRO_IMPRESSAO);
                       allDone();
                  void allDone() {
                    synchronized (PrintJobWatcher.this) {
                        done = true;
                        PrintJobWatcher.this.notify();
My printer is an epson U220B partial cut. Configured on windows 2000.
Please if anyone has any ideas on this subject please give me a hand here, I'm kinda in a trouble here ;)
Thanks all

First, print the stack traces in your catch blocks: without that, how can you know that you have a problem?
Second, try use AUTOSENSE instead of TEXT_PLAIN_US_ASCII.

Similar Messages

  • Javax.print problems on applet - bug on mac os implementation?

    Dear All,
    I am working on an applet and application that include a print function and I get a weird behaviour on MacOS in applet mode (both with Safari and Firefox - Mac OS X Versione 10.4.9 (Build 8P135) ). In contrast, things work fine on Windows XP (both Explorer 7 and Firefox with Java Plug-in 1.6.0_01) and even in MacOS when using the application.
    The problems are:
    - the print dialogue goes on and off a few times before letting the user interact with it
    - the page format in the dialogue is set to A5 (instead of the printer's default)
    - there is a small empty window appearing together with the dialogue and not disappearing even after the applet is closed
    Is this a known problem? If so, are there work-arounds?
    (I had no luck on Google about this)
    To reproduce the problem I created a stripped down version of the applet, in 2 files, I report it at the bottom of this message. I am using a modified version the PrintUtilities class from http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html
    Am I doing something wrong? Or shall I consider submitting a bug report?
    Any suggestion is welcome! Please let me know if I should provide more detailed information.
    Thank you in advance,
    Enrico
    PrintMe.java
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.JApplet;
    import javax.swing.JPanel;
    public class PrintMe extends JApplet implements MouseListener{
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;
         public PrintMe() {
              super();
         private class MyComponent extends JPanel{
              private static final long serialVersionUID = 1L;
              public void paintComponent(Graphics g) {
                   super.paintComponent(g);
                  Graphics2D g2 = (Graphics2D) g;
                  g2.setColor(Color.black);
                  g2.drawString( "Test text", 0, g2.getFontMetrics().getHeight() );
         public void init() {
              MyComponent aComponent = new MyComponent();
              jContentPane = new JPanel();
              jContentPane.setLayout(new BorderLayout());
              jContentPane.add(aComponent);
              this.setContentPane(jContentPane);
              this.addMouseListener(this);
         public void print(){
              try{
                   PrintUtilities.printComponent(this);
              }catch (Exception e) {
                   e.printStackTrace();
         public void mouseClicked(MouseEvent e) {
              print();
         public void mouseEntered(MouseEvent e) {
              // not used
         public void mouseExited(MouseEvent e) {
              // not used
         public void mousePressed(MouseEvent e) {
              // not used
         public void mouseReleased(MouseEvent e) {
              // not used
    PrintUtilities.java
    import java.awt.Component;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import javax.print.attribute.HashPrintRequestAttributeSet;
    import javax.print.attribute.PrintRequestAttributeSet;
    import javax.swing.RepaintManager;
    import javax.swing.RootPaneContainer;
    /** A simple utility class that lets you very simply print
    *  an arbitrary component. Just pass the component to the
    *  PrintUtilities.printComponent. The component you want to
    *  print doesn't need a print method and doesn't have to
    *  implement any interface or do anything special at all.
    *  If you are going to be printing many times, it is marginally more
    *  efficient to first do the following:
    *    PrintUtilities printHelper = new PrintUtilities(theComponent);
    *  then later do printHelper.print(). But this is a very tiny
    *  difference, so in most cases just do the simpler
    *  PrintUtilities.printComponent(componentToBePrinted).
    *  7/99 Marty Hall, http://www.apl.jhu.edu/~hall/java/
    *  May be freely used or adapted.
    public class PrintUtilities implements Printable {
         private Component componentToBePrinted;
         public static void printComponent(Component c) {
              new PrintUtilities(c).print();
         public PrintUtilities(Component componentToBePrinted) {
              this.componentToBePrinted = componentToBePrinted;
         public void print() {
              try{
                   PrinterJob printJob = PrinterJob.getPrinterJob();
                   printJob.setPrintable(this);
                   PrintRequestAttributeSet attributes = new HashPrintRequestAttributeSet();
                   if( printJob.printDialog(attributes) ){
                        try {
                             printJob.setJobName("MyName");
                             printJob.print(attributes);
                        } catch(PrinterException pe) {
                             System.err.println("Error printing: " + pe);
                             pe.printStackTrace();
              }catch (Exception e) {
                   e.printStackTrace();
         public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
              if (pageIndex > 0) {
                   return(NO_SUCH_PAGE);
              } else {
                   RootPaneContainer rpc = (RootPaneContainer)(this.componentToBePrinted);
                   rpc.getRootPane().getGlassPane().setVisible( false );
                   Graphics2D g2d = (Graphics2D)g;
                   double sy = pageFormat.getImageableHeight() / componentToBePrinted.getHeight();
                   double sx = pageFormat.getImageableWidth() / componentToBePrinted.getWidth();
                   if( sx > sy ){
                        sx = sy;
                   }else{
                        sy = sx;
                   g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
                   g2d.scale(sx, sy);
                   disableDoubleBuffering(componentToBePrinted);
                   componentToBePrinted.paint(g2d);
                   enableDoubleBuffering(componentToBePrinted);
                   return(PAGE_EXISTS);
         /** The speed and quality of printing suffers dramatically if
          *  any of the containers have double buffering turned on.
          *  So this turns if off globally.
          *  @see enableDoubleBuffering
         public static void disableDoubleBuffering(Component c) {
              RepaintManager currentManager = RepaintManager.currentManager(c);
              currentManager.setDoubleBufferingEnabled(false);
         /** Re-enables double buffering globally. */
         public static void enableDoubleBuffering(Component c) {
              RepaintManager currentManager = RepaintManager.currentManager(c);
              currentManager.setDoubleBufferingEnabled(true);
    }

    Trying to answer to myself..
    Is it possible that the problems are due to me mixing java.awt.print and javax.swing.print ?

  • Javax.print problem: data not of declared type

    Hi all,
    I'm trying to print a simple text-only document with the below code but it keeps giving me an illegal argument exception. By the way, I've tried all the combinations of DocFlavor.*.* and SERVICE_FORMATTED.PRINTABLE and SERVICE_FORMATTED.PAGEABLE are the only ones working for me. Is this normal?
    Thanks!
    IllegalArgumentException:
    java.lang.IllegalArgumentException: data is not of declared type
            at javax.print.SimpleDoc.<init>(SimpleDoc.java:82)
            at DiagnosticsPane.actionPerformed(DiagnosticsPane.java:350)
    import java.io.*;
    import javax.print.*;
    import javax.print.attribute.*;
    class testPrint
         public static void main(String args[])
              PrintRequestAttributeSet pras =     new HashPrintRequestAttributeSet();
              DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
              PrintService ps[] = PrintServiceLookup.lookupPrintServices(flavor, pras);
              PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
              PrintService service = ServiceUI.printDialog(null, 200, 200, ps, defaultService, flavor, pras);
              if (service != null) {
                   try {
                        DocPrintJob job = service.createPrintJob();
                        DocAttributeSet das = new HashDocAttributeSet();
                        FileInputStream fis = new FileInputStream("report.txt");
                        Doc doc = new SimpleDoc(fis, flavor, das);
                        try {
                             job.print(doc, pras);
                             System.err.println("Job sent to printer.");
                        } catch (PrintException e) {
                             System.err.println("Print error!\n\n" + e.getMessage());
                   } catch (FileNotFoundException e) {
                        System.err.println("File not found!\n\n" + e.getMessage());
    }

    Hi duffymo,
    I've tried all the available DocFlavors and even wrote a little program to list all my supported DocFlavors. And, I've only got 2 available for each of my printers, one being a Canon i320 and the other is a Adobe PDF printer.
    import javax.print.*;
    import javax.print.attribute.*;
    class listDocFlavor
      public static void main(String args[])
        PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
        DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
        PrintService ps[] = PrintServiceLookup.lookupPrintServices(flavor, pras);
        for (int j = 0; j < ps.length; j++) {
          DocFlavor df[] = ps[j].getSupportedDocFlavors();
          for (int i = 0; i < df.length; i++)
            System.err.println(j + ": " + df);
    0: application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
    0: application/x-java-jvm-local-objectref; class="java.awt.print.Printable"
    1: application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
    1: application/x-java-jvm-local-objectref; class="java.awt.print.Printable"

  • Lexmark C530 printing problem question

    OK, I still haven't solved the various problems with printing from Leopard to my Lexmark C530dn but could anyone help me out with what is actually going on here? I've been round the houses so much I need some clarity. This is what I think I have discovered:
    Apple bundled the driver for this printer with Leopard (it's in their list), though when you install the drivers a driver specifically for the c530 doesn't appear in the printer drivers folder. It does appear from System prefs (as driver 10.5.0.0). But it doesn't work, even though it was (presumably) specifically designed for Leopard. Nor is it mentioned on the Lexmark website that only mentions the old Tiger driver with a very different number, so you can't actually download this driver from Lexmark's website as it isn't there (nor indeed are any updates that might actually work).
    The long and the short of this confusion is that no-one knows whether the bubdled driver was written by Lexmark or Apple and so no-one knows who is meant to be writing one that actually works (and presumably the one supplied was completely untested before being put on the Leopard disk).
    Is this crazy or have I missed something somewhere? Any clarity will be most welcome (though a solution from Apple or Lexmark would be even better!).
    Thanks
    James

    Apple bundled (and updated) a LM driver with 10.5. It doesn't work. LM has announced there are no drivers that support 10.5; they are starting to write them and they may be out in March '08.
    There are some workarounds posted in other threads, but I'm not sure how well they work in all cases. My solution was to return my 5470 and get a Brother MFC240C

  • Further Printing Problem/Question

    Well first, I am extremely sorry that I installed Snow Leopard. I am basically unable to use my Epson Stylus Photo R380, and several programs have frozen many times. Never had a single issue before I updated. Anyway my dilemma is this:
    I have followed several of the "fixes" here such as deleting the Epson folder from the printer library and reloading from the Epson site. Well first of all, I never see specifically a choice for the "R380"...only the photo pro series from numerous choices in the drivers. If I choose that, I get the following printer error:
    "cgpdftoraster unsupported coloSpace: colorSpace = -1, colorOrder = 1, bitsPerColor = 1
    If I use the "Gutenprint" R380 (which many people say is a lousy driver) it prints, but with poor quality. With either driver in both photoshop and in iPhoto, I never get a choice of the type of paper/photo paper/quality to print on. Furthermore, using Discus, I never have the choice to print on a CD/DVD
    Prior to "Snow Leopard", printing was easy and flawless. I will NEVER update another program again until at least six months has passed from release.

    roberot60 wrote:
    I have followed several of the "fixes" here such as deleting the Epson folder from the printer library and reloading from the Epson site.
    The other half of the fixes mentioned here include downloading the latest software using Software Update. According to http://support.apple.com/kb/HT3669, there is a recently updated driver available through Software Update. Delete the <hard drive>/Library/Printers/EPSON folder, delete the printer from Print & Fax Prefs, run Software Update to download the latest Epson update. After installing the update, restart, then re-add the printer.

  • Printer Driver problem/question....

    Using a MacBook with 10.5.1. A Linksys wireless network hooked to a desktop PC and an Epson Stylus Photo R380 printer also hooked directly to the PC.
    Problem: When the Mac is hooked up directly to the printer it works fine. However, when trying to print from it via the wireless network, the print comes out in a light, weak shade of black and colors.
    In setting up the printer, I used the only generic driver available in the list provided in the set up window for this printer, a gutenprint v5.1.3.
    Spoke to the Epson people who say that the problem is probably because I am not using the Epson driver established specifically for the OX 10.5.x...the v3.68. Therefore, I downloaded that driver and have it on my desktop.
    However, I cannot establish the printer with this driver. I am using the IP setup option. I have used the "Other" option under "Print Using" box. Then, click on downloads, then select the Epson driver, then "Open", but cannot get the driver to appear either in the list of drivers under "Select a Driver to use" or in the "Print Using" box. Nothing happens when I use "Auto" either.
    Question: How can I setup the printer with the Epson driver that I have downloaded ?
    I've spent 3 hours trying to reslve this with bot Apple Care and Epson to no avail.
    Appreciate any assistance. Thanks.

    Not sure if this helps or not, but I also have a MacBook running 10.5.1 and an Epson R380 printer. I have the printer directly connected via USB to an iMac. I then use Bonjour to print to it via my Macbook on my home network.
    With both the iMac and MacBook running Tiger, I had no printing problems at all. I had a terrible time trying to print on the R380 from the MacBook running 10.5.1 when the iMac was still running Tiger. It alternately wouldn't let me select the Epson driver for the printer, or when I could select it, the print settings options weren't available to do things like change the print quality or paper type. I downloaded the latest Epson drivers and made sure they were installed on both Macs. I also tried the gutenprint driver packaged with Leopard and I couldn't get it to print at all.
    However, when I upgraded the iMac where the printer was connected to Leopard, it started to work perfectly from the MacBook.
    I know with your set up you have the printer connected to a PC so this isn't exactly relevant. But I thought I'd confirm at least there does seem to be something in general funky with the Epson R380 drivers and using Leopard.

  • Javax.print.PrintServiceLookup operation

    I am trying to find out where this method gets the printServices from. I have an application that is run on three different os's and most likely 3 different versions of java.
    box1: Debian Sarge(3.1) , jdk1.6.0_14, cups 1.1.23
    box2: Debian Lenny/Sid, jdk1.6.0.07, cups 1.3.7
    box3: Ubuntu 9.04, jdk1.6.0_14, cups 1.3.9
    cups server: Debian Lenny cups 1.3.8
    All printers are broadcast from the cups server , box1-3 only see the broadcast printers.
    My program is able to print on box1 and 2 to the three printers shared via the cups server that I want it too.(sales,invoicing,shipping).
    When I try and print to either invoicing or shipping(sales is the default on all boxes) I get an error and the job is sent to the default.
    PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
    for (int j=0; j<services.length;j++) {
    logger.debug("Printer returned from system: " + services[j].getName());
    if (services[j].getName().equals(cmbPrinters.getSelectedItem())){
    selectedPrinterService = services[j];
    my logger output shows that an array of length 5 is returned(that is right, a total of 6 printers on the system) but only services[0] has an entry, sales. The rest of the positions are null.
    I am trying to figure out where PrintServiceLookup gets this information, I have found that this same problem holds true for any other Ubunutu 9.04 box that I set up around here.
    lpstat -v shows all of the printers shared via the cups server, the default sales is not listed as the first position so I am not sure if PrintServiceLookup just moves the default system printer into this location or not.
    Thank you.
    Grant

    you got me, I did have a question. I was trying to figure out where javax.print.PrintServiceLookup.lookupPrintServices got the returned PrintServices from. I can not figure out why my printers all work from other programs on all my servers, but inside this one program, the one everyone here uses I can only print to the default printer when using box3, but print to the printer of my choice on box 1 and 2. Basically what is lookupPrinterServices() checking to find out what printers are available.

  • Printing problems with hp laserjet cp1515n [found problem]

    Dear Arch users,
    A couple of weeks ago I installed for the first time an Arch linux on my brand new Dell laptop with an UEFI MB. It took a while until I could understand how UEFI works but eventually I sort it out and got Arch installed. Unfortunatelly there are some small problems to be straiten out. One of them is the fact that printing with my laser printer (see subject line) is not working.
    for the last couple of days I was searching through all post I could find around on the internet, mainly here at the Arch forum. Unfortunatelly I could not find anything nearly describing what I am living on my system. Well here is a brief description of what is happening. After installing Arch, I opted for KDE desktop environment and I made the full instalation. After installing additional software (gimp, inkskape, etc.) I needed to install my printer. At first I couldn't get permission. Than reading the Arch tutorial for CUPS, I saw that the 'lp' permission was not setup properly. Well Have done as described there. Then I tryed to install using the GUI from KDE for installing an usb printer and for my surprise there was not such an option. I intalled than de hp-toolbox, and than it was easy to install the printer. It was automatically recognized and everything was there. The problem was, when I open an archive (text, web page, doesn't matter) and send it to print, the spooler went well theoretically sent to printer and then popped up a notification saying printing finished. Opening the printing cue, I can see that the archive was still there and marked as pending. That was the point where I started to search around for potential solutions or similar solutions.
    After sudying a lot I came to a conclusions that it probably have something to do with permissions. Unfortunately I could not find out where or which permissions to change in order to get something printed. I found some "debugging" and information commands and I am posting the results here;
    # systemctl status cups
    cups.service - CUPS Printing Service                                                                                     
              Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)                                                 
              Active: active (running) since Tue 2013-01-29 13:26:21 BRST; 4h 43min ago                                     
            Main PID: 525 (cupsd)                                                                                           
              CGroup: name=systemd:/system/cups.service                                                                     
                      └─525 /usr/sbin/cupsd -f                                                                               
    Jan 29 17:39:46 XXXX-archs hp[12186]: io/hpmud/musb.c 588: invalid usb_open: Permission denied                           
    Jan 29 17:40:14 XXXX-archs systemd[1]: Started CUPS Printing Service.                                                   
    Jan 29 17:43:27 XXXX-archs systemd[1]: Started CUPS Printing Service.                                                   
    Jan 29 17:44:19 XXXX-archs systemd[1]: Started CUPS Printing Service.
    Jan 29 17:44:26 XXXX-archs systemd[1]: Started CUPS Printing Service.
    Jan 29 17:44:51 XXXX-archs systemd[1]: Started CUPS Printing Service.
    Jan 29 17:45:05 XXXX-archs systemd[1]: Started CUPS Printing Service.
    Jan 29 17:56:35 XXXX-archs systemd[1]: Started CUPS Printing Service.
    Jan 29 17:56:36 XXXX-archs systemd[1]: Started CUPS Printing Service.
    Jan 29 17:56:36 XXXX-archs systemd[1]: Started CUPS Printing Service.
    # systemctl status cups.socket
    cups.socket - CUPS Printing Service Sockets
              Loaded: loaded (/usr/lib/systemd/system/cups.socket; enabled)
              Active: active (running) since Tue 2013-01-29 13:26:10 BRST; 4h 45min ago# /usr/lib/cups/backend/usb
    DEBUG: list_devices
    DEBUG: libusb_get_device_list=10
    DEBUG2: Printer found with device ID: MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,POSTSCRIPT,PCL;MDL:HP Color LaserJet CP1515n;CLS:PRINTER;DES:Hewlett-Packard Color LaserJet CP1515n;MEM:MEM=55MB;COMMENT:RES=600x8; Device URI: usb://HP/Color%20LaserJet%20CP1515n?serial=00BRAS85501Y
    direct usb://HP/Color%20LaserJet%20CP1515n?serial=00BRAS85501Y "HP Color LaserJet CP1515n" "HP Color LaserJet CP1515n" "MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,POSTSCRIPT,PCL;MDL:HP Color LaserJet CP1515n;CLS:PRINTER;DES:Hewlett-Packard Color LaserJet CP1515n;MEM:MEM=55MB;COMMENT:RES=600x8;" ""
    Jan 29 13:26:10 XXXX-archs systemd[1]: Starting CUPS Printing Service Sockets.
    Jan 29 13:26:10 XXXX-archs systemd[1]: Listening on CUPS Printing Service Sockets.
    # lsusb
    Bus 001 Device 003: ID 03f0:4417 Hewlett-Packard EWS UPD
    Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
    Bus 003 Device 004: ID 0c45:648d Microdia
    Bus 004 Device 004: ID 0cf3:e004 Atheros Communications, Inc.
    # /usr/lib/cups/backend/usb
    DEBUG: list_devices
    DEBUG: libusb_get_device_list=10
    DEBUG2: Printer found with device ID: MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,POSTSCRIPT,PCL;MDL:HP Color LaserJet CP1515n;CLS:PRINTER;DES:Hewlett-Packard Color LaserJet CP1515n;MEM:MEM=55MB;COMMENT:RES=600x8; Device URI: usb://HP/Color%20LaserJet%20CP1515n?serial=00BRAS85501Y
    direct usb://HP/Color%20LaserJet%20CP1515n?serial=00BRAS85501Y "HP Color LaserJet CP1515n" "HP Color LaserJet CP1515n" "MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,POSTSCRIPT,PCL;MDL:HP Color LaserJet CP1515n;CLS:PRINTER;DES:Hewlett-Packard Color LaserJet CP1515n;MEM:MEM=55MB;COMMENT:RES=600x8;" ""
    # lpinfo -v
    network ipps
    network smb
    direct hp
    network socket
    network http
    network ipp
    file cups-pdf:/
    network lpd
    network beh
    network https
    direct ptal
    direct hpfax
    # usb-devices
    T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
    D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
    P:  Vendor=03f0 ProdID=4417 Rev=01.00
    S:  Manufacturer=Hewlett-Packard
    S:  Product=HP Color LaserJet CP1515n
    S:  SerialNumber=00BRAS85501Y
    C:  #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=2mA
    I:  If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=(none)
    I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=01 Driver=(none)
    The out put from the last command (usb-devices) I only copyed the relevant part from the printer in question.
    the couple of last lines of CUPS error.log are;
    E [29/Jan/2013:17:44:48 -0200] [Job 14] Stopping unresponsive job.
    E [29/Jan/2013:17:52:25 -0200] [Client 14] Request for subdirectory "/admin/log/error_log?".
    E [29/Jan/2013:17:52:41 -0200] [Client 14] Request for subdirectory "/admin/log/error_log?".
    E [29/Jan/2013:18:05:47 -0200] [cups-deviced] PID 14408 (dnssd) stopped with status 1!
    E [29/Jan/2013:18:16:37 -0200] [cups-deviced] PID 15151 (dnssd) stopped with status 1!
    I hope somebody could help me out to find where to change permission (if necessary) or point me out to an different road.
    Thanks
    Last edited by camarao (2013-02-08 02:36:36)

    OK here am I again.
    as mentioned before I created an bogus printer with:
    lpadmin -p test -v file:/dev/null
    verified the presence of the printer;
    lpstat -p
    $ lpstat -p
    printer Color_LaserJet_cp1515n disabled since Fri 01 Feb 2013 02:55:59 PM BRST -
            reason unknown
    printer hp930c is idle.  enabled since Thu 31 Jan 2013 11:30:21 PM BRST
    printer test is idle.  enabled since Fri 01 Feb 2013 02:54:57 PM BRST
    At first "test" printer was disabled for an uknown reason.
    tried to use lpadmin -p test to enable the printer as described on the previusly mentioned web site, but couldn't get to enable printer "test". After reading alittle more on the internet I found the command cupsenable <printer> and indeed it changed the printer status.
    tried to print;
    echo test | lp -d test
    result:
    $ echo test | lp -d test
    lp: Destination "test" is not accepting jobs.
    I tried to change the condition of the Color laser printer but did not made any difference with the cups command.
    Conclusion: how can I modify this status to make the printer accept jobs?

  • Crystal report printing problem in Malayalam

    Hi,
    I have a printing problem in Malayalam in crystal report.The viewer displays the correct font but the printed output displays the square boxes.I have installed the font.I am using Visual studio 2010 and crystal report 13.0 version.what could be the problem???
    please help me...!!!

    Hi priyashekar,
    I’m afraid that it is not the correct forum about this issue, since this forum is to discuss Visual C#. You can post your question in the
    Crystal report forum: http://scn.sap.com/community/crystal-reports-for-visual-studio/content?filterID=content~objecttype~objecttype[thread]
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Canon 860 Series (Pixma) Printer Problems with OSX 10.8 (Mountain Lion) – links to Canon Support Site with Drivers and Software with install tips

    After spending several hours sorting out Canon Pixma OSX problems here are my thoughts:
    Canon 860 Series (Pixma 868) Printer Problems with OSX 10.8 (Mountain Lion) – links to Canon Support Site with Drivers and Software with install tips
    Problem:
    - New imac and MacBook Pro 2012 (OSX 10.8.2) had a problem using Canon Pixma 868 printer on network and would not scan or print using Canon Pixma software (Pixma MP Navigator 2.1 & Photo Print), which has advanced scanning and photo printing functions. 
    - When I connected the canon printer to my imac, OSX 10.8.2 automatically downloaded and installed drivers for Canon 860 series printer. I could then add the new printer (select ‘apple menu’ / ‘system preferences’ / ‘print and scan’ / “+”) and printer would work while connected via USB but could not get to print or scan over network wifi. 
    - The original Canon 860 Series CD does not work with 10.8 and the manual / online instructions did not make sense (as based on CD install). 
    Solution:
    1) Install Canon Printer Drivers and Software (from official Canon site)
    Go to canon support site, review FAQ, then download and install following Pixma 860 Series software & drivers for OSX 10.8 (links see below). The version I downloaded is in brackets but check for updated version. Full instructions are below.
    Canon 860 Series Drivers & Software  for OSX 10.8 Mountain Lion:
    The base software and drivers needed for using Canon 860 Series on Mac OS X 10.8 (USB) are
    1 Printer Driver
    (Canon MX860 series CUPS Printer Driver Ver. 10.67.1.0 (03-Aug-2012))
    2 Scanner Driver
    (Canon MX860 series Scanner Driver Ver. 14.11.4a (03-Aug-2012))
    3 Network Tool
    (Canon IJ Network Tool Ver. 4.1.0 for Intel Mac (27-Dec-2012)
    Canon Software for using advanced printing and scanning functions (while connected to network)
    4 Solution Menu
    (Canon Solution Menu Ver. 1.4.1 (27-Jul-2012 ))
    5 MP Navigator EX
    (Canon MP Nav EX Ver. 2.1.3 (02-Auf-2012))
    6 Easy-PhotoPrint EX
    (Canon Easy-PhotoPrint EX Ver. 4.1.6 (21-Jan-2013 ))
    Canon Support (HK) – check your local site
    http://www.canon.com.hk/en/download/main/index.do
    Select Product and drivers from support site eg http://support-hk.canon-asia.com/
    1. Choose a product category
    Multifunctional Printers
    2. Choose a product series
      Pixma
    3. Choose a product model
      Pixma MX868
    4. Choose type of document
    Downloads or FAQ
    If you have problems installing the software under 10.8, see the FAQ on Canon site. You will need to allow software installs from “unidentified developers by using “Control” Key or by changing your system preferences)
    2) Check Canon Printer and Software Working while connected via USB
    Once you have downloaded and installed drivers and software and restarted computer, check that the printer and Canon Pixma software (Pixma MP Navigator 2.1 & Photo Print) are working via USB.  Open the Canon IJ Network Tool App (Applications / Canon Utilities /IJ Network Tool / Canon IJ Network Tool App) and make sure you can see the Canon MX 860 series (xx.xx.xx.xx.xx.xx) and that it shows the correct SSID Wifi settings (under the Canon IJ Network Tool App ‘Setup menu’).  This is normally done as part of the automatic install but worth double checking
    3) Add new network printer using ‘apple menu’ / ‘system preferences’ / ‘print and scan’ / “+”).
    After you have checked USB printing turn off printer, unplug the USB cable and shutdown the Canon IJ Network Tool App.
    Then turn the printer back on and wait 30s. Then add a new printer using ‘apple menu’ / ‘system preferences’ / ‘print and scan’ / “+”). Once you select “+” (add new printer), wait 10-30s for the Wifi Networked Canon MX 860 Series printer to appear in the new window eg Canon MX 860 series (xx.xx.xx.xx.xx.xx) (Kind: “Canon IJ Network”)
    DO NOT ADD THE MX 860 SERIES BONJOUR SCANNER (the Bonjour Scanner is the built-in software, is not needed and often appears first on the add printer list).  The Canon scanner can be accessed used through the MP Nav EX Ver. 2.1.3 software (which has much better functions)
    You will now have two Printer Canon MX860 (USB) and Canon MX860 (Wifi / Network). Set the Canon MX860 (Wifi / Network) as default and test print and scan
    If the Wifi Networked Canon MX 860 Series printer does not appear, check the printer and make sure that the printer can see the wifi network. On the printer select Menu / Settings / Device Settings / Lan Settings / WLAN Setting List.  It should say WLAN Active, identify the SSID and have an IP address
    If the printer can not see the Wifi Network, plug the USB cable back in, then open the Canon IJ Network Tool App (Applications / Canon Utilities /IJ Network Tool / Canon IJ Network Tool App). Make sure you can see the Canon MX 860 series (xx.xx.xx.xx.xx.xx) and that it has your SSID settings (under setup), if it has this info, restart the computer and the printer and try again

    Hi, thaks for response, meant to post as a discussion (not question), wanted to save others time if they get the same problem

  • Leopard 10.5.6 and HP Wireless printing problem

    I have a client with a iMac 20" model, shes been having problems with her HP wireless printer for a while now (Photosmart 7280), its setup with static IP, installing the HP software, it can sense the printer, both Bonjour and IP, but when come to printing, it will start the queue as you would expect, but on the printer it simply display 'Printing' and thats it, it just sits there doing nothing else, you cant even cancel the printing, thinking its a fault with the printer, we went out and got her the latest HP Photosmart 8180, guess what ? it does the same thing.
    I searched through HP forum, and people are blaming OSX that after 10.5.1 it broke the wireless printing, because I recalled that her old Macbook running tiger never had this problem with the old 7280 printer (sadly its been upgraded to the latest Leopard before Xmas)
    With the new 8180 , I use my Notebook running XP Pro and connected to it wireless and printed first time, so the problem does seem like its coming from OSX Leopard, but sadly I cant find a solution, I posted twice on their messageboard but not a single reply after 2 months, so I am hoping that some experts here may have a solution or workaround to this.

    dimsumbox,
    I am probably having the same issue as you are. The "HP IP Printing" is not listed in the drop-down menu under "More Printers". As such, attempting to print over the wireless is not working.
    Using a wired connection, and selecting "Default" I am able to add the printer and print to it.
    On a home network, you may see the printer under "Default". Unfortunately for me, my wired and wireless networks are separate and this option does not work for me.
    The printer in question is a Color LaserJet 3500n, and I'm attempting to locate how I can add the "HP IP Printing" option without reinstalling the entire system.
    Message was edited by: green spyder

  • HP Officejet Pro 8600 Plus "unspecified printer problem"

    I just set up my HP Officejet Pro 8600 Plus e-All-in-One.  The set-up seemed to go okay, but when I go to the "devices" tab for "HP Connected" it has a yellow yield sign and says that I have a problem with my printer.  When I click on the yield sign symbol, the box says that "An unspecified problem was reported. Please check your printer."   When I check the printer pannel, there are no problems reported.  The machine seems to print okay, but I'd like to clear up this error that is shown.  Any ideas?
    Also, I've already done the restart and sign-off/sign-in stuff, so we can move on to second-order trouble shooting.  Thanks.
    This question was solved.
    View Solution.

    HELP!
    I am having exactly the same problem. I am simply swapping out an existing Deskjet 3512 that worked perfectly at all levels, so i KNOW i dont have router/port/network issues. eprint was and is flawless. I just plugged it back in to check and it still works just fine with eprint.
    Using my new Pro8600, I send emails to my eprint address and they seem to go...and then nothing. they just don't print.
    I get the"Officejet Pro 8600 Plus "unspecified printer problem"" message but my front panel reports no issues.
    I'm a step away from taking this back and buying an Epson.
    My experience with their support has bee stellar at a commercial printer level.
    This seems to be a very common problem and I just dont have hours to monkey around with something that should work out of the box.
    any help will be appreciated.

  • HP DESKJET 2540 Printing Problem

    21-2015 08:06 AM
    Good evening everyone, I'm a professional that working in the computer industry , but alas this time are messed up with my work .
    The printer in question is a product that I give regularly , I will have installed a dozen , this today is really nasty . I completed the installation as always , the printer , when I send something to print from the PC , not the press , the beauty is that does everything as if he had printed , ditto if I print a test page . The printer is ' USB connected to the PC . Converting the door and turning it into a network printer, the IP they can control work it on the Web page , but if I put the IP as a TCP / IP port is the same as with USB .
    The scanner works perfectly from PC .
    If I send photos in Wireless all work perfectly even those from IPHONE IPAD etc.
    I tried HP SCAN AND PRINT DOCTOR , gives me an error in STEP DRIVER , but the driver is updated at last for the system I use, if I give him the test print from internal it give me the press !!! only by them can then print with the pc .
    And ' absurd all this . Anyway the PC in question is a pc just a year with Windows 8 64-bit a colleague has an idea ?

    Does this occur with every line printed or only on the last line of the page?
    If you change the print quality to "best"  does that clear up the issue?
    If the answer to either is "yes" then try cleaning the cartrdige contacts as shown here.
    Regards,
    Bob Headrick, Microsoft MVP Printing/Imaging
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Duplex Printing Problem - Word 2007, Vista and HP Officejet Pro L7780

    I'm having trouble with duplex printing on my new HP Officejet Pro L7780, from Word 2007, running on a brand new Vista system.  I've also had this same problem (repeatable) with two other computers, running XP Professional/Word 2003, XP Home/Word 2003.  All of the service packs have been installed for the operating system, word, and printer. 
    If you print a landscape document, using the auto duplex setting for the HP printer, the margins will print out offset by .25 inches, on the left and rigt margins.  So if your margin is 1 inches on right and left, the margins will print to .75 on one side and 1.25 on the other.  This would be annoying, except that I'm trying to print brochures and books, which requires that the pages print out exactly as set up... "close enough" isn't working for me
    The way I have replicated this problem is as follows:  set up a document in landscape format, using the default margins.  Insert an image on page one, size it so it takes the full margin area.  On the second page, fill it up with text.  Print the document, selecting the printer properties and setting Print on Both Sides=Automatic.   The easiest way see the problem is by holding the document up to the light.  The front and back margins should match and they don't.
    Any help you can provide would be very much appreciated.
    Diana

    Diana,
    This problem is perhaps much larger than you might have imagined.  We have tried to work with Hewlett Packard for over two years on the duplex printing problems.  In the process, we have expended over 100 hours of effort in troubleshooting the problem which has included updating software, reinstalling software, developing test documents, escalating issues, submitting technical findings, and in purchasing replacements.  Unfortunately, our efforts to interact with Hewlett Packard excalated support have resulted in an aire of apathy, disinterest, incompetence, frustration, redundancy, occasional discourtesy, and an outright lack of professional decorum - something inconceivable of a large, reputable company.
    We have identified several problems with duplex printing.  The duplex printing problems include irregular margin increases (.25 to .50 inch), margin shifts, cut-off text, compressed text, and compressed graphics.  Please note that most of these problems are only evident when printing documents from computer applications to the printer.  If the user simply uses the front printer panel to copy in duplex mode, these problems are not always evident.  This suggests that the printer mechanics are capable of properly duplexing and that the problem lies in the drivers.
    The problem is evident on the HP OfficeJet Pro L7780, Photosmart L7180, Photosmart C6150, Photosmart 3310, and likely on many, many other HP models.  The problem is evident on many computers (HP, IBM, Toshiba, and Dell), is evident in multiple applicatons (Word, Wordperfect, Excel, Peachtree, Notepad, and many more), and is evident on multiple operating systems (Windows XP Home, Windows XP Professional, Windows XP Media Center Edition, and Microsoft Vista).
    We consider ourselves to be extremely polite, patient individuals, but have nearly been driven to outrage by the indignant disregard offered us by HP's escalation support department; a department which should represent the cream-of-the-crop in both service and technical expertise.  Given the ease with which the problem can be duplicated, we expected an extremely quick resolution by HP who, to our knowledge, has never even made the effort to duplicate the problem in-house on our behalf.
    Ironically, HP highly advertises their J.D. Powers rated technical support, yet it appears that they actually have extremely poor published consumer rankings in some of today's mainstream computer magazines.  HP technical support makes no apologies for the fact the user cannot use a major feature of their printers, offers no indication that the problem is even being addressed, and off-loads the responsibility by suggesting that we contact Microsoft (who is to blame for this issue).
    Thank you, Diane, for your message.  We had a hard time imagining that we were the only one experiencing this problem, especially when HP promotes such a representation.  Which also begs the question why HP plays like the problem does not even exist?  I also fail to understand why HP technical support shows so little interest in a problem that is easily duplicated and adversely affects a major feature of the printer which is commonly used by individuals purchasing equipment for its duplex capabilities.
    This is sad because we have been a loyal customer of HP for over twenty-five years.  There was a time when we would have happily endorsed HP's steller products and steller support (provided you could get a problem escalated).  Now, however, they all-too-often appear to offer equipment that fails to support advertised features which is backed up by sub-standard support and extremely expensive ink.  This is an especially sad commentary for users who are buying HP's upper-end printers and computers.
    We desire to know if there are others out there experiencing similar problems?  If you have experienced these problems or would like samples of the problems we have duplicated, please respond.  I think the more information we gather, the better our chance of a successful resolution to a serious problem.
    Thanks Everyone!

  • Printing problem with DocFlavor.SERVICE_FORMATTED RENDERABLE_IMAGE

    Does anyone use javax.print for printing ?
    I wanted to print the content of a JPanel, so a created a RenderableImage implementation, but my problem is that my EPSON Stylus Color C60 seems to not support this DocFlavor !
    So I had to use a PRINTABLE, that is not a good thing since it is the same as java.awt.print.Printable : you should trick and workaround with scaled AffineTransform and disabled double-buffering when asking for the print.
    So if anyone succeed in using javax.print to print BufferedImage, please tell me (tutorial,....)
    EDIT : added 10 Duke Dollars
    Message was edited by:
    Kilwch

    I've worked hard to print a complex Gantt chart using both javax.print and java.awt.print packages. As I've to use only Postscript printers, I've implemented Printable and Pageable interfaces instead of RenderableImage. However, the results has been very good, including the zoom feature implemented using the Graphics2D' scale method.
    Look at this user guide:
    http://java.sun.com/j2se/1.4.2/docs/guide/jps/spec/JPSTOC.fm.html
    Hope this help

Maybe you are looking for