Discussion Board

Results 1 to 2 of 2
  1. #1
    Super Contributor Nokia_Archive's Avatar
    Join Date
    Mar 2003
    Posts
    2,426
    I would like to print a text from a Java program installed in the Nokia9210 to a printer by IR.

    Printer is Citizen PD-04
    Communication between printer and Nokia 9210 is working properly because I can print a text from a PDA Word document.

    I've tried printing from the Java program using the code JDK1.1.x compliant.
    The code is :

    "
    PrintJob pj= f.getToolkit().getPrintJob(f,"print1",null);
    if (pj!=null)
    {
    Graphics g=pj.getGraphics();
    g.setFont(new java.awt.Font ("Dialog",0,8));

    g.drawString("TEXT EXAMPLE",10,20);

    g.dispose();
    pj.end();
    }
    "

    The program works in the PC (the System Print Chooser Dialog appears and the print is correct) but it doesn't work in the Nokia 9210.

    Is there any specific library needed? Is there anything wrong? Is it possible to do what I want?

    Posted by Oscar Soria, Oscar.Soria@db.com
    on April 03, 2002 at 10:00

  2. #2
    Super Contributor Nokia_Archive's Avatar
    Join Date
    Mar 2003
    Posts
    2,426
    Posted by Adam Stevenson, adam.stevenson@ntlworld.com
    on April 03, 2002 at 12:05

    Printing is an omission in Symbian's Personal Java AWT implementation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved