Print a PCL file - How is it possible ?

Hello,
I'm receiving a PCL file from an external system, and I have to send this file towards a print ( or a spool ).
Do you have some idea ?
tks.

no reply

Similar Messages

  • PCL file - how convert it ?

    Hello expert,
    I have a pcl file. How is possible to convert it ?
    I mean that I want to decode a pcl file and to have data on the spool read to be print.
    any idea ?
    tks.

    no reply

  • Crystal Report print to PCL file needs to contain searchable text

    Hi,
    I am using VS(2005) and Crystal Report XI R2 .net Service pack 4.  I need to be able to create a pcl file that contains text information on the first page that needs to be parsed and read by another application.  However, I am not able to use a generic/text only pcl driver to do this because the remainder of the report (page 2 on) needs to contain lines and table borders as if it were printed to paper from the printer.  The report/print to file driver I have configured will produce a pcl file that meets my requirements when I print from Crystal XI R2 but when I use either the .Net view or I print directly form code all of the text in the pcl file is contained in an image. 
    Any suggestions on ways I can resolve this issue are greatly appreciated.
    Greg

    The CR.NET uses the .NET Framework print service for sending the output to the printer itself, where the page is sent as an image.  There's no way to alter this behavior within CR.NET.
    This is problematic for your task, as well as for tasks that rely embedded fonts or text strings (such as phone dialers, faxes, printer fonts, etc).
    Whatever you do, you'd have to do outside of CR.NET
    Sincerely,
    Ted Ueda

  • I can't print regular pdf files- how can I delete adobe reader?

    I can print everything on my computer except the regular pdf files. I have updated my canon drivers. I have tried to update my adobe reader driver but get the error message that I have files in use. How do I delete or update adobe files when I can't find anyplace there are files in use?

    You may want to try the following:
    Run this fix from Microsoft: http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Uninstall Reader using Add/Remove Programs
    If you want to reinstall Reader, download it from http://get.adobe.com/reader/direct/

  • I am having trouble on printing a pdf file. how can i fix it.

    How can I print PDF files with Microsoft Vista?

    Go here and download a version of Adobe Reader. Once it is installed, when you open a pdf file with it, you should be able to print to an installed printer.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Cannot print PCL file with graphical content

    If I try to print a PCL file with graphical content using lp then the output is corrupt on a network printer. I've tracked the problem down to the netpr program - which seems to be performing some sort of filtering on the data. Does anyone know how the flags work for netpr - or know of a work around?

    Assuming you are running 10.10.2 and not the ancient 10.0.2, can you tell us what printer and printer driver you are using? How is the printer connected to the computer (network, usb)? See if you can delete the Reader preference files? Years ago I resetting the printer subsystem would sometimes cure a problem like this.

  • Printing Pcl file

    Hi <br />I want to ammend the JMD so that the nojob prints out a pcl file that I am testing. I can print it using a command line paramater using "copy <filename> <printerserver/printername>"<br /><br />So i want to carry this out through central so i thought the nojob task i have looks like this, but it doesnt work. <br /><br />   !x JFNOJOB * * "copy @InFile \\printerserver\printername" *  <br /><br />Has anybody got any ideas to solve this? <br />I thought maybe a JFPrint task but there doesnt seem to be one. <br /><br />Cheers.

    Let me re-ask the same question, but maybe more clearer this time.
    I have a PCL file on a UNIX server.
    I need to be able to print the PCL file to an HP color LaserJet 5550 printer, using UNIX's "lp" command.
    The DNS Name of the printer is "oepljp1q".
    I am using PuTTY to issue the "lp" command.
    After issuing the "lp" command, I receive no error messages, so I believe, that the command was successful.
    I see no buttons on the printer, that would show me, if any jobs are queued up to be printed.
    I had my "lp" command monitored by our Performance Group, and the monitoring showed the IP set-up and tear-down of the session between the UNIX server with the PCL file and the printer, with packlets in between.
    Any idea, why the printer is not producing the desired paper output?

  • PCL file - is possible to print it directly ?

    Helle expert,
    I'm receiving a pcl file from an external system.
    With GUI_UPLOAD I import this file into SAP ( on spool ).
    Now I want to print it. How can I do it ?
    P.S. I tried simply print it but in the paper there's only the symbol : I mean that the
    file is not decoded.
    Tks a lot.

    no reply

  • PCL file - after codification, how to print it ?

    Hello,
    I got a file pcl, I can put it into an internal table,
    my question is:
    how can send it to print (oe spool ) ?    some bapi, or some mf ?
    tks,

    Hi,
    try this way....
      Data :     wa_pri_params TYPE pri_params,
        CONCATENATE 'E'
                     sy-datum+4(4)
                     sy-uzeit INTO
                     wa_pri_params-plist.        "creating spool number
      NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.  "writing data to spool
      LOOP AT t_data into w_data.    "data of PCL file in internal table
        WRITE : / wa_error-text.
      ENDLOOP.
      NEW-PAGE PRINT OFF.                                        
    * To fetch the spool number from TSP01 table
      SELECT rqident
             FROM tsp01
             INTO w_rqident
             UP TO 1 ROWS
             WHERE rq2name = wa_pri_params-plist.       "fetching spool number
    write : tsp01-RQIDENT.
    Prabhudas

  • How to print an Doc file(MS Word File)on a printer in JAVA

    Hi.I am Prakash.
    Folowing is the code that i have used to print an doc file on a printer. Problem is that , when i run this code it will provide me an printout of a doc file.,but not in well formate as the actual formate of the file. If any one tried this before plz help me.Thanks
    import java.lang.reflect.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Graphics2D;
    import java.io.*;
    import javax.swing.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    import javax.print.event.*;
    public class BasicPrint {
         JFrame frame;
         JButton btn;
         private boolean PrintJobDone = false;
         protected void MakeGui() {
              frame = new JFrame("PrintService");
              btn = new JButton("Cancel Print Job");
              btn.disable();
              frame.getContentPane().add(btn, BorderLayout.SOUTH);
              frame.pack();
              frame.setVisible(true);
         BasicPrint(String FileToPrint, String pMode) {
              try {
                   MakeGui();
                   File baseDir = new File("d:/doc");
    File outDir = new File(baseDir, FileToPrint);
                   // Open the image file
                   InputStream is = new BufferedInputStream(new FileInputStream(
                             outDir));
                   // Find the default service
                   DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
                   //DocFlavor flavor = new DocFlavor("application/msword", "java.io.InputStream");
                   //DocFlavor docFlavor = new DocFlavor("application/vnd.ms-word", "java.io.InputStream");
                   if (pMode != null && pMode.equalsIgnoreCase("PS"))
                        flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
                   else if (pMode != null && pMode.equalsIgnoreCase("PDF"))
                        flavor = DocFlavor.INPUT_STREAM.PDF;
                   else if (pMode != null && pMode.equalsIgnoreCase("JPG"))
                        flavor = DocFlavor.INPUT_STREAM.JPEG;
                   else if (pMode != null && pMode.equalsIgnoreCase("GIF"))
                        flavor = DocFlavor.INPUT_STREAM.GIF;
                   else if (pMode != null && pMode.equalsIgnoreCase("PNG"))
                        flavor = DocFlavor.INPUT_STREAM.PNG;
                   else if (pMode != null && pMode.equalsIgnoreCase("PCL"))
                        flavor = DocFlavor.INPUT_STREAM.PCL;
                   else if (pMode != null && pMode.equalsIgnoreCase("RAW"))
                        flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
                   else if (pMode != null && pMode.equalsIgnoreCase("TXT16"))//****                                   *********
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_16;
                        System.out.println("****ACTIVE***");
                   else if (pMode != null && pMode.equalsIgnoreCase("TXTBE"))//****
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_16BE;
                   else if (pMode != null && pMode.equalsIgnoreCase("TXTHOST"))//***
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_HOST;
                   else if (pMode != null && pMode.equalsIgnoreCase("TXT8"))
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_8;
                   else if (pMode != null && pMode.equalsIgnoreCase("TXTASCI"))
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_US_ASCII;
                   else if(pMode != null && pMode.equalsIgnoreCase("TXTLE"))
                        flavor = DocFlavor.INPUT_STREAM.TEXT_PLAIN_UTF_16LE;                                        //*******
                   else if(pMode != null && pMode.equalsIgnoreCase("SEVICE"))
                        flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
                   String type = flavor.getMediaType();
                   System.out.println("Type ="+ type);
                   //IMPRIMIR prakashCV.doc TXT text/plain; charset="utf-16le"; class="java.io.InputStream"
                   System.err.println("* IMPRIMIR " + FileToPrint + " " + pMode + " "
                             + flavor);
                   PrintService dservice = PrintServiceLookup
                             .lookupDefaultPrintService();
                   PrintService[] services = PrintServiceLookup.lookupPrintServices(
                             flavor, null);
                   if (services == null || services.length < 1)
                        services = PrintServiceLookup.lookupPrintServices(null, null);
                   PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
                   aset.add(new Copies(1));
                   aset.add(OrientationRequested.PORTRAIT);
                   // aset.add(MediaTray.MAIN);
                   aset.add(Sides.ONE_SIDED);
                   aset.add(MediaSizeName.ISO_A4);
                   PrintService service = ServiceUI.printDialog(
                             (GraphicsConfiguration) null, 60, 60, services,
                             (PrintService) dservice, (DocFlavor) flavor, aset);
                   if (service != null) {
                        // Create the print job
                        final DocPrintJob job = service.createPrintJob();
                        Doc doc = new SimpleDoc(is, flavor, null);
                        // Monitor print job events; for the implementation of
                        // PrintJobWatcher,
                        PrintJobWatcher pjDone = new PrintJobWatcher(job);
                        if (job instanceof CancelablePrintJob) {
                             btn.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent evt) {
                                       CancelablePrintJob cancelJob = (CancelablePrintJob) job;
                                       try {
                                            cancelJob.cancel();
                                       } catch (PrintException e) {
                                            // Possible reason is job was already finished
                             btn.enable();
                        try {
                             // Print it
                             job.print(doc, (PrintRequestAttributeSet) aset);
                        } catch (PrintException e) {
                             e.printStackTrace();
                        System.err.println("* Impresion Realizada - Esperando ..");
                        // Wait for the print job to be done
                        pjDone.waitForDone();
                   // It is now safe to close the input stream
                   is.close();
              } catch (IOException e) {
                   e.printStackTrace();
              } catch (Exception e) {
                   e.printStackTrace();
              } finally {
                   try {
                        synchronized (BasicPrint.this) {
                             PrintJobDone = true;
                             BasicPrint.this.notify();
                   } catch (Exception e) {
                        e.printStackTrace();
         public synchronized void waitForDone() {
              try {
                   while (!PrintJobDone) {
                        wait();
              } catch (InterruptedException e) {
                   e.printStackTrace();
         public static void main(String[] args) {
              try {
                   //args[0]="t";
                   //args[1]="rr";
    //               if (args.length < 1) {
    //                    System.err.println("\nSintaxis:\n\n java BasicPrint FileToPrint [pMode]\n");
    //                    System.exit(0);
                   BasicPrint bp = null;
                   //if (args.length < 2){
                        //bp = new BasicPrint(args[0], null);
                   //}else{
                        //bp = new BasicPrint(args[0], args[1]);
                        bp = new BasicPrint("prakashCV.doc","SEVICE");                                                       //****/***
                   bp.waitForDone();
                   System.exit(0);
              } catch (Exception e) {
                   e.printStackTrace();
         class PrintJobWatcher {
              // true iff it is safe to close the print job's input stream
              boolean done = false;
              int lastEvent = 0;
              PrintJobWatcher(DocPrintJob job) {
                   // Add a listener to the print job
                   job.addPrintJobListener(new PrintJobAdapter() {
                        public void printJobRequiresAttention(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err
                                       .println("* La impresora requiere de su Atencion ! * "
                                                 + pje);
                             // allDone();
                        public void printDataTransferCompleted(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err
                                       .println("* Transferencia de datos a la impresora OK. * "
                                                 + pje);
                             // allDone();
                        public void printJobCanceled(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err.println("* Trabajo de impresion CANCELADO ! * "
                                       + pje);
                             allDone();
                        public void printJobCompleted(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err.println("* Impresion completa OK. * " + pje);
                             allDone();
                        public void printJobFailed(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err.println("* ERROR en la Impresion ! * " + pje);
                             // allDone();
                        public void printJobNoMoreEvents(PrintJobEvent pje) {
                             lastEvent = pje.getPrintEventType();
                             System.err
                                       .println("* No mas eventos de impresion * " + pje);
                             allDone();
                        void allDone() {
                             synchronized (PrintJobWatcher.this) {
                                  done = true;
                                  PrintJobWatcher.this.notify();
              /** Description of the Method */
              public synchronized void waitForDone() {
                   try {
                        while (!done) {
                             wait();
                   } catch (InterruptedException e) {
                        e.printStackTrace();
    }

    Hi Maxpkh
    Do you mean attachment? You can't do that with free Adobe Reader you need Acrobat to do this.
    ~Deepak

  • How to print a pdf file on a servlet

    Hi,
    I have a question, is it possible and how to send to a local printer a pdf file with a serlet ?

    the lengthy thread on this topic from "advanced language topics" seems to have been lost in the renaming. There's a lot of discussion there so it may be worth your doing a thread search for "printing" and "binary" together as they formed part of the thread title.

  • How rman backup messages printed in alert file?

    surprised how the messages of rman getting printed in alert file?
    i am using 10.2.0.4 on AIX and using veritas net backups.....from rman.....
    ORA-19624: operation failed, retry possible
    ORA-19506: failed to create sequential file, name="c-1650503797-20091118-0c", parms=""
    ORA-27028: skgfqcre: sbtbackup returned error
    ORA-19511: Error received from media manager layer, error text:

    Raman wrote:
    Well. i agree. we have logs to capture media backups....so wanted to cut only these media backups failure out of alert file...else what is happening here is our monitoring reports these as alerts as already we know from media backup logs...So why not modify your monitoring of the alert log to exclude that particular error?
    Personally, I'd allow both systems to continue to report the error from their perspective.
    >
    in nutshell...just exploring any options to turn off the media backup failures like any rman parameters or can anything to do with veritas parameters?
    Anyway thanks to all for your valuable opinions.
    Thanks,
    Raman.

  • How to generate PCL files ?

    Hello,
    We are using PIB 5.6.3 within APPS 11.5.10.2 on RedHat Linux servers.
    For printing purpose but also for archiving, we need to generate physical PCL files.
    I read many posts on the subject and most of them advise to use ghostscript (GS) so I tried it but the result was not very good :
    - the PCL file are too big (3 or 4 times the corresponding PDF size) so it is not good for our archiving system
    - the generated PCL files cannot be correctly printed
    Maybe I am not calling correctly GS ?
    Can anyone working with BIP on APPS indicate to me how to generate correct and optimized PCL files in batch mode ? (with GS or any other tool)
    Thanks in advance
    K.Helali

    Hi
    GS is the recommendation fro development right now. They are going to release their own PDF to PCL driver in the near future but for now GS. There are many other customers using GS for PCL generation. I have not heard of customers using it as a format for archiving only printing so I guess size has not been an issue for them - just get it to the printer and delete the PCL after that!
    There might be some commercial product out there but I can not recommend any at the moment.
    Regards
    tim

  • How to print a HTML file in browser look using DocPrintJob

    Hello guys,
    Does anyone know how to print HTML output/file into browser look?
    I'm using DocPrintJob and the DocFlavor set to DocFlavor.INPUT_STREAM.AUTOSENSE.
    posted below is my code :
    public class BasicPrint {
        public static void main(String[] args) {
            try {
                // Open the image file
                String testData = "C:/new_page_1.html";
                InputStream is = new BufferedInputStream(new FileInputStream(testData));
                DocFlavor flavor =  DocFlavor.INPUT_STREAM.AUTOSENSE;
                // Find the default service
                PrintService service = PrintServiceLookup.lookupDefaultPrintService();
                System.out.println(service);
                // Create the print job
                DocPrintJob job = service.createPrintJob();
                Doc doc= new SimpleDoc(is, flavor, null);
                // Monitor print job events; for the implementation of PrintJobWatcher,
                // see e702 Determining When a Print Job Has Finished
                PrintJobWatcher pjDone = new PrintJobWatcher(job);
                // Print it
                job.print(doc, null);
                // Wait for the print job to be done
                pjDone.waitForDone();
                // It is now safe to close the input stream
                is.close();
            } catch (PrintException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
        static class PrintJobWatcher {
            // true iff it is safe to close the print job's input stream
            boolean done = false;
            PrintJobWatcher(DocPrintJob job) {
                // Add a listener to the print job
                job.addPrintJobListener(new PrintJobAdapter() {
                    public void printJobCanceled(PrintJobEvent pje) {
                        allDone();
                    public void printJobCompleted(PrintJobEvent pje) {
                        allDone();
                    public void printJobFailed(PrintJobEvent pje) {
                        allDone();
                    public void printJobNoMoreEvents(PrintJobEvent pje) {
                        allDone();
                    void allDone() {
                        synchronized (PrintJobWatcher.this) {
                            done = true;
                            PrintJobWatcher.this.notify();
            public synchronized void waitForDone() {
                try {
                    while (!done) {
                        wait();
                } catch (InterruptedException e) {
    }the printed ouput for this code will be look like this
    <html>
    <body>
    <div style="page-break-after:'always';
                background-color:#EEEEEE;
                width:400;
                height:70">
         testPrint</div>
    ABCDEFGHIJK<p>
     </p>
    </body>
    </html>however, the output that i want is the HTML in browser look not HTML code itself.
    i've tried to change the DocFlavor into any TEXT_HTML type but it gives error:
    sun.print.PrintJobFlavorException: invalid flavor if you guys has any idea or solution, can you share with me... already search in Google but still not found any solution
    Thanks in advanced.

    hi,
    do the following
    URL url = null;
    try
         url = new URL("http://www.xyz.com");
    catch (MalformedURLException e)
          System.out.println("URL not correct " + e.toString());
    if (url != null)
           getAppletContext().showDocument(url,"_blank"); //shows the page in a new unnamed top level browser instance.
    }hope that helpz
    cheerz
    ynkrish

  • I am trying to print a PDF file to a legal size paper and I would like for it to fill up the page. How do I do this? I went into the settings and changed it from letter to legal, but it's still printing out the same size. Can someone help me, please?

    I am trying to print a PDF file to a legal size paper and I would like for it to fill up the page. How do I do this? I went into the settings and changed it from letter to legal, but it's still printing out the same size. Can someone help me, please?

    Are you trying to Print to PDF or are you trying to Print a PDF file to a physical printer?

Maybe you are looking for