Printing local with JAVA Gui 7.10 on a MAC

Hi,
I installed the JAVA GUI 7.10 on my MacBook Pro and it all works fine. The only problem I have is local printing. Since I do not have SAPLPD anymore, I am not able to use local printing. Is there another possibility to do local printing with a Mac?
Thanks Maarten

Maarten,
Yes.
The following text is from Chapter 2. "Release Notes" / Section 2. "Missing Features" of the JavaGui HTML documentation:
Front-End Printing Using SAPLPD (access method 'F') is only supported on Win32 platforms. For newer back-end versions, a new printing architecture for all platforms supported by SAP GUI for Java (access method 'G') is available, see SAP Note 821519 for details.

Similar Messages

  • Cannot read list of frontend printers - Printing in SAP JAVA GUI for MAC

    Hello,
    I am trying to print a Spool request in SAP Java GUI 7.10. I am working on Apple with OSX operating system. I get this error message -
    " Cannot read list of frontend printers " - Message no. PO781
    What do i need to do to take a print out from SAP on my Mac.
    Thanks
    Buddy

    Hello,
    which printing access method you are using?
    You might want to have a look at [note 821519|https://service.sap.com/sap/support/notes/821519].
    Best regards
    Rolf-Martin

  • Printing HTML with Java Printing Service(JDK1.4 beta)

    Hi there!
    I'm currently checking out the new Java Printing Service (JPS) in the new JDK1.4 beta. This looks like a very promising printing API, with amongst others printer discovery and support for MIME types - but I have some problems with printing HTML displayed in a JEditorPane.
    I'm developing an application that should let the user edit a (HTML)document displayed in a JEditorPane and the print this document to a printer. I have understood that this should be peace-of-cake using the JPS which has pre-defined HTML DocFlavor amongst others, in fact here is what Eric Armstrong says on Javaworld (http://www.javaworld.com/javaone01/j1-01-coolapis.html):
    "With JPS, data formats are specified using MIME types, for example: image/jpeg, text/plain, and text/html. Even better, the API includes a formatting engine that understands HTML, and an engine that, given a document that implements the Printable or Pageable interface, generates PostScript. The HTML formatting engine looks particularly valuable given the prevalence of XML data storage. You only need to set up an XSLT (eXtensible Stylesheet Language Transformation) stylesheet, use it to convert the XML data to HTML, and send the result to the printer."
    After one week of reasearch I have not been able to do what Armstrong describes; print a String that contains text of MIME type text/html.
    I have checked the supported MIMI types of the Print Service returned by PrintServiceLookup.lookupDefaultPrintService(). This is the result:
    DocFlavor flavor = DocFlavor.INPUT_STREAM.GIF;
    PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
    aset.add(MediaSizeName.ISO_A4);
    aset.add(new Copies(2));
    PrintService[] service = PrintServiceLookup.lookupPrintServices(flavor,aset);
    if (service.length > 0) {
    System.out.println("Selected printer " + service[0].getName());
    DocFlavor[] flavors = service[0].getSupportedDocFlavors();
    for (int i = 0;i<flavors.length;i++) {
    System.out.println("Flavor "+i+": "+flavors.toString());
    Selected printer \\MUNIN-SERVER\HP LaserJet 2100 Series PCL 6
    Flavor 0: image/gif; class="[B"
    Flavor 1: image/gif; class="java.io.InputStream"
    Flavor 2: image/gif; class="java.net.URL"
    Flavor 3: image/jpeg; class="[B"
    Flavor 4: image/jpeg; class="java.io.InputStream"
    Flavor 5: image/jpeg; class="java.net.URL"
    Flavor 6: image/png; class="[B"
    Flavor 7: image/png; class="java.io.InputStream"
    Flavor 8: image/png; class="java.net.URL"
    Flavor 9: application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
    Flavor 10: application/x-java-jvm-local-objectref; class="java.awt.print.Printable"
    As you can see there is no support for text/html here.
    If anyone has a clue to what I'm missing here or any other (elegant, simple) way to print the contents of a JEditorPane, please speak up!
    Reply to: [email protected] or [email protected] or here in this forum

    Since you have 'printable' as one of your flavors, try this using a JTextPane (assuming you can dump your HTML into a JTextPane, which shouldn't be a big problem)...
    1. Have your JTextPane implement Printable
    ie. something like this:
    public class FormattedDocument extends JTextPane implements Printable 2. Read your HTML into the associated doc in the text pane.
    3. Implement the printable interface, since you have it as one of your available flavors (I'd imagine everybody has printable in their available flavors). Something like this:
    public int print(Graphics g, PageFormat pf, int pageIndex) {
            Graphics2D g2 = (Graphics2D) g;
            g2.translate((int)pf.getImageableX(), (int)pf.getImageableY());
            g2.setClip(0, 0, (int)pf.getImageableWidth(), (int)pf.getImageableHeight()); 
            if (pageIndex == 0)
                setupPrintView(pf);
            if (!pv.paintPage(g2, pageIndex))
                return NO_SUCH_PAGE;
            return PAGE_EXISTS;
        }Here's my setupPrintView function, which is executed once on page 0 (which still needs some polishing in case I want to start from page 5). It sets up a 'print view' class based on the root view of the document. PrintView class follows...
    public void setupPrintView(PageFormat pf) {
    View root = this.getUI().getRootView(this);
            pv = new PrintView(this.getStyledDocument().getDefaultRootElement(), root,
                               (int)pf.getImageableWidth(), (int)pf.getImageableHeight());Note of obvious: 'pv' is of type PrintView.
    Here's my PrintView class that paints your text pane line by line, a page at a time, until there is no more.
    class PrintView extends BoxView
        public PrintView(Element elem, View root, int w, int h) {
            super(elem, Y_AXIS);
            setParent(root);
            setSize(w, h);
            layout(w, h);
        public boolean paintPage(Graphics2D g2, int pageIndex) {
            int viewIndex = getTopOfViewIndex(pageIndex);
            if (viewIndex == -1) return false;
            int maxY = getHeight();
            Rectangle rc = new Rectangle();
            int fillCounter = 0;
            int Ytotal = 0;
            for (int k = viewIndex; k < getViewCount(); k++) {
                rc.x = 0;
                rc.y = Ytotal;
                rc.width = getSpan(X_AXIS, k);
                rc.height = getSpan(Y_AXIS, k);
                if (Ytotal + getSpan(Y_AXIS, k) > maxY) break;
                paintChild(g2, rc, k);
                Ytotal += getSpan(Y_AXIS, k);
            return true;
    // find top of page for a given page number
        private int getTopOfViewIndex(int pageNumber) {
            int pageHeight = getHeight() * pageNumber;
            for (int k = 0; k < getViewCount(); k++)
                if (getOffset(Y_AXIS, k) >= pageHeight) return k;
            return -1;
    }That's my 2 cents. Any questions?

  • Need help with Java GUI

    I'm a bit unfamiliar with the features of the Java GUI which I'm using for an online game I'm making. Specifically, I can't move around the different components the way I want to. I want to have my game on one frame, but made up of 3 different parts. The top half will be the the actual game where the images are displayed, then below that will be a scroll pane to show all the messages the player has received, and the bottom part will be a text field so the player can send messages. I have the text field and scroll pane working, but the problem is that the scroll pane takes up the entire screen (except for the text field) and I can't find any way to resize it and move it to the bottom, just above the text screen, the way I want it to be. I'm using JTextField for the text field, and JDisplayArea and JScrollPane for the scroll pane.
    Here are two images in case you can't visualize what I am saying. This is what it looks like now:
    http://img127.imageshack.us/img127/1294/beforeob1.jpg
    And this is how it should be:
    http://img127.imageshack.us/img127/8724/aftedzu7.jpg
    Help would be greatly appreciated. Thanks in advance.

    Does the class that implement your game panel provide a meaningful return value for the method "getPreferredSize()"? I guess you use a BorderLayout, don't you? In this case the game panel isn't visible because it doesn't tell the LayoutManager what size it wants and so it gets a 0,0 size.
    Greetings
    Stefan

  • Monitor Print Queue with java program

    I'm plan to write a client/server based application which control the printing for every user. I've no idea how to start on the application.
    1. Is it possible to monitor the print queue or print job using java application?
    2. How does the server react if the client sending the print job to there? How's the client can trigger the signal during printing and send to the server?
    Thank you!

    I'm plan to write a client/server based application
    which control the printing for every user. I've no
    idea how to start on the application.You should establish feasibility first, before planning to write anything
    1. Is it possible to monitor the print queue or print
    job using java application?Not really. Print queues are highly system-dependent things and some e.g. Windows can really only be accessed via system calls in a native language.
    2. How does the server react if the client sending
    the print job to there?Err, it prints the file?
    How's the client can trigger the signal during printing and send to the server? What signal?
    But I suspect the answer to the first question makes the others irrelevant.

  • Printing problem with HP laserjet 1100A after upgrading to Mac OS Maverick

    Good afternoon,
    I have always been able to use my HP Laserjet 1100A with my iMac till I upgraded to Mac OS Maverick.
    After giving a printing order just one order will be carried out.
    In case I have 3 printjobs I have te restart the iMac twice to carry out all the print jobs.
    I am using USB for connection.
    When I use the printer with my Windows computer (Windows 7) there is no problem at all with the required printjobs.
    I guess the driver Gutenprint v5.2.3 is the cause of the problem.
    Is there a new printerdriver available?
    Thanks in advance.
    Fred

    I am sorry, but to get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial printer. You can do this at http://h30499.www3.hp.com/hpeb/
    I have provided the HP LaserJet 1100 All-in-One Printer series Support page.
    I hope this helps.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Forms 10gR2 printing issue with Java Plug-in 1.6.0_21

    Hi All,
    I replaced Jinitiator by Java Plug-in 1.6.0_21. I’m using forms 10gR2. I modified formsweb.cfg file and most of the other functionality work fine. I overwrote the default functionality of the menu item ‘Print Button’ by the following java script
    *'File name :- print.html'*
    <html>
    <head>
    <title>Print</title>
    <style type="text/css">
    font-family:"arial";
    color: #303030;
    </style>
    </head>
    <body onload="printsetup();">
    <div style="border: 1px solid; padding:10px">
    <div style="font-size:larger;text-decoration:bold;padding-bottom:10px;text-align:center">Print capture beginning. Please wait...</div>
    <div style="text-align:center">(This window will close automatically.)</div>
    </div>
    <script>
    function printform()
    window.opener.print();
    window.close();
    function printsetup()
    window.resizeTo(600,250);
    var t=setTimeout("printform()",1000);
    </script>
    </body>
    </html>
    It was working fine with Jinitiator since I installed java sun I always receive the following error message
    Line: 19
    Char: 1
    Error: 'window.opener' is null or not an object
    Code: 0
    URL: http://localhost.domain:port/forms/webutil/start/print.html.
    Thanks & Regards,
    Walid

    The problem you are both reporting is unclear. If I understand at all what you are doing, it would seem that you are calling window.opener, but the window has no name. In newer browser versions (I believe IE 7 and newer) what I think you are trying to do won't work anymore. Take a look at this:
    http://msmvps.com/blogs/paulomorgado/archive/2007/11/02/how-to-close-browser-windows-in-windows-internet-explorer-7.aspx
    Also check out MyOracleSupport Note 865745.1
    The example in the note has been tested with Forms 10.1.2.3 and 11.1.1.4 using 1.6.0_23 in IE8 and FF3.6 and appears to work correctly.

  • How to print ServerVariables with Java/JavaScript

    I am working on a problem with a one of our web pages and need to review the request string coming in. I know that in ASP you can do something like the following to print out the HTTP headers sent by the client:
    Request.ServerVariables(�ALL_HTTP�)
    Is there something similar to this that I can do in Java?
    Thank you!

    What the ASP page is doing is getting the HTTP headers. Here is the equivalent java code
    response.setContentType("text/html");
    java.io.PrintWriter out = response.getWriter();
    Enumeration headers = request.getHeaderNames();
    String headerName;
    String headerValue;
    while (headers.hasMoreElements()) {
    headerName = (String)headers.nextElement();
    headerValue = request.getHeader(headerName);
    out.print(headerName);
    out.print(headerValue);}
    Venkat

  • Printing Problems with JAVA

    Hello,
    I have problems with the following Code.
    import java.text.NumberFormat;
    import javax.print.Doc;
    import javax.print.DocFlavor;
    import javax.print.DocPrintJob;
    import javax.print.PrintException;
    import javax.print.PrintService;
    import javax.print.PrintServiceLookup;
    import javax.print.SimpleDoc;
    public class Printer {
         private PrintService[] printers;
         private int choosenPrinter;
         private StringBuffer text;
          * Der Konstruktor legt einen Array der verfügbaren Drucker an.
          * @param stdPrinter Der aktuell ausgewählte Drucker(-index)
         public Printer(int stdPrinter) {
              printers = PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.AUTOSENSE, null);
              if (printers.length > 0){
                   choosenPrinter = 0;
                   setChoosenPrinter(stdPrinter);
              } else choosenPrinter = -1;
          * Liefert einen Array mit Namen der verfügbaren Drucker.
          * @return Namen der verfügbaren Drucker
         public String[] getPrinters() {
              String[] retPrinters = new String[printers.length];
              for (int i = 0; i < printers.length; i++) {
                   retPrinters[i] = printers.getName();
              return retPrinters;
         * @return Liefert den Index des aktuell ausgewählten Druckera
         public int getChoosenPrinter() {
              return choosenPrinter;
         * Setzt den Index des aktuell ausgewählten Druckers neu,
         * wenn der Index gültig ist.
         * @param choosenPrinter Der neu ausgewählte Index
         public void setChoosenPrinter(int choosenPrinter) {
              if (choosenPrinter <= printers.length) {
                   this.choosenPrinter = choosenPrinter;
         * Druckt eine oder mehere Quittungen über die übergebenen Daten
         * @param buchung Buchung die in der Quittung enthalten sein soll.
         * @param haendler Händler der in die Quittung aufgenommen werden soll.
         * @param kunde Kunde der in die Quittung aufgenommen werden soll.
         * @param config Das aktuelle Configobjekt.
         * @param times Anzahl der Quittungen die gedruckt werden sollen.
         * @return true wenn der Druck erfolgreich angestoßen wurde, false sonst
         public boolean printBuchung() {
              if (choosenPrinter == -1) return false;
              PrintService printer = printers[choosenPrinter];
              String ls = System.getProperty("line.separator");
              NumberFormat nf = NumberFormat.getInstance();
              nf.setMaximumFractionDigits(2);
              nf.setMinimumFractionDigits(2);
              text = new StringBuffer();
              if ('T' == 'T') {
                   text.append("Q U I T T U N G");
                   text.append(ls);
              String temp = text.toString();
              temp = temp.replace("ä", "ae");
              temp = temp.replace("ö", "oe");
              temp = temp.replace("ü", "ue");
              temp = temp.replace("ß", "ss");
              for (int i=0; i<1000; i++) {
                   DocPrintJob docPJ = printer.createPrintJob();
                   Doc doc;               
                   doc = new SimpleDoc(temp.getBytes(), DocFlavor.BYTE_ARRAY.AUTOSENSE, null);
                   try
                   docPJ.print(doc, null);
                   catch (PrintException e)
                        return false;
                   catch (Exception e)
                        // TODO Auto-generated catch block
                        e.printStackTrace();
              return true;
    }The programm sends the printing job to Windows XP but nothing is happend. Have anybody a tip for me?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I tried this and it shut off Firefox accessing the internet. had to uninstall FF and Adobe and do a reinstall to get my internet back up and working. This only effected my browser not my pop3 mail

  • Integrate JCard commands with Java GUI Applet

    Hello everybody.I have just tested some existing applets from the Java Card Toolkit 2.1.1 and I have also created and tested successfully my own applet.
    I am thinking to develop a friendly G.U.I in general Java(probably can be an applet or an application) using the Visual Cafe for Java from the Symantec in order to integrate the command Dos line for taking control of the Java Card Toolkit commands into the GUI Java applet.
    (e.g.//READ the record
    0x00 0xB2 .........//It is assumed that this is contained in the file read_record.scr file
    //and from the dos command line you can just write:
    //c:\>apdutool read_record.scr )
    For example, I will just create a button to send the above APDU to the jcwde.(e.g READ a specific record or add A NEW RECORD,Delete this Record,Store this RECORD)
    I was wondering if it is possible to integrate the DOS command line with a Java applet(not a Java Card applet but GUI applet in general Java) and everything can be hidden from the user.
    Or can I integrate the DOs line only with a Java application, and how?(probably with the System library...?)
    I will appreciate any thoughts and assisstance for this idea.
    Thank you.

    Hello ! ya I have developed a GUI If you want I can sent the source to u .It's simple You can do fuctions using simply by click of a button you can run the simulator .You need not go to prompt every time .
    Bye :)
    Neelesh .
    [email protected]

  • Adding Print Button With Java Script to Print of Different Pages Differently

    Hi,
    I am in the process of making a form and most of it is done and now I want to be able to print off two of the pages but to different printers, I have one that needs to be printed off on a regular A4 printer and another that needs to go to a label printer. I have both of the names for the printers and I have tried something but it just doesnt do anything at all (this is suggested by adobe I think?)
    var pp = this.getPRintParam();
    var printamount = this.getValue("Quantity_Boxes");
    pp.printerName = "Zebra Technologies ZTC GK420t";
    pp.firstPage = 3;
    pp.lastPage = 3;
    pp.NumCopies = 2*printamount;
    this.print();
    I tried it without the first and last page and nothing happens, I am useing a shared printer which works when I do cmd + P which the full printer name is Zebra Technologies ZTC GK420t @ User's iMac. (I have also tried putting the full name in aswell)
    This is just to test one page so far but is there any way that one button will be able to print off 2 different pages to 2 different printers?
    If someone knows how this would be a great help!
    Thanks,
    Bruce

    Thanks for that, I have it working now but it shows the dialog box with no settings changed should i use:
    pp.interactive = pp.constants.interactionLevel.automatic ?
    Thanks,
    Bruce
    EDIT:
    It printed but only the first page but it printed on the right amount quantity was 2*3 wich was the result of the Quantity_Box value
    I want it to print page 3 through the Zebra Printer and have page 2 printed to a different printer, is this possible through one button?

  • How to Print reports with Java Application

    I'm developing a database application in java using rmi and swings. Now I want to take some printout of reports from that application. Is any report designer available for java applications. How can i solve this problem. Please help me.

    Hi
    I don't know i f exist a tool like you want, but, in Java
    the print job is implemented by a class implementing the Printable interface.
    A class "Printable" must implement the print method like is defined at scpec. This method, via the params, can do print by "drawing" the page and, finally, return an integer
    indicate if the print loop must continue or not.
    The drawing op over the printer Graphics context is realized by methos of Graphics object (if you want "print"
    some text you can do g.drawString("some text",x,y) and so on).
    See the tutorials for more info
    Hope this help

  • How to print Text with Java

    I am new to java, learning fast, lots of new stuff every day. i want to develop an application that can print a report (Text mostly eg. Like an Invoice) to a printer. i am searching the net still cant find nothing that i can understand. Help please

    To learn java printing, you may want to visit:
    http://java.sun.com/j2se/1.4.2/docs/guide/jps/
    or
    http://java.sun.com/docs/books/tutorial/2d/printing/
    Or you can download reporting tool, please visit:
    http://jasperreports.sourceforge.net/
    or
    http://www.elixirtech.com/
    Okie! God bless :)

  • To Print Ticket with java

    Hi All,
    I have developed Bus Travel Booking system.now i want to print Ticket for that.
    Condition is tht in 1 A4 size paper 2 or 3 tickets should be printed.
    i dont know how to started for tht.
    pls help me it's urgent..
    any link,document which might be helpful.
    Any help would be appreciated..
    Thanks in advance.

    What exactly do you want to print to the Ticket? ... contents of a text file,
    or what did you have in mind?

  • Print double with java.util.Formatter

    Hi,
    I have this code:
       double num = 5.123; 
       StringBuilder sb = new StringBuilder(); 
       Formatter formatter = new Formatter(sb);           
       formatter.format("%.1f",num); 
       System.out.println(formatter.toString());  the output is *5{color:#ff0000},{color}1* , but i want *5{color:#ff0000}.{color}1*
    why a {color:#ff0000}*,*{color} ???
    tks
    Edited by: Yanson on Mar 29, 2008 11:44 AM

    I think that you have a locale problem. The Formatter thinks that your locale is one where comma is used as the decimal point (i.e., Spain). try changing your locale to another location.

Maybe you are looking for

  • Help in using multiple select tag

    Hi all, I'm trying to make a jsp application that as follows: 1- A multiple select control appears with a number of items in it 2- Another multiple select is empty 3- When you choose and item from the first select control and press a button the item

  • Problem with EXIF metadata reading

    Hi everyone I'm trying to read EXIF metadata information. Here is my code snippet: uchar* exifData; Handle exifDataHandle = filterRecord->handleProcs->newProc(100); propSuite->getPropertyProc('8BIM', propEXIFData, 0, nil, &exifDataHandle); exifData =

  • Nested tab in adf

    I have a page tab(say A) which contains three sub tabs(B, C, D). Clicking on tab A will show contents related to it and clicking on other three tabs will show their respective content. Now I want to show in the same page under the base tab's showdeta

  • Workflow not created

    Hello all, I created a workflow and transported to QAS. it was working fine. I was asked to make some changes by business users. I made changes in DEV ( tested too) and transported to QAS. Now i see in SWEL (in QAS) workflow gets triggered but the wo

  • Formatting text  within a TextArea in a GUI

    I am new to java but have built a simple telephone directory operated through a gui all works ok. Program displays results in the form of a column of record numbers a column of names & a column of telephone numbers all of which are appended to a text