How to print directly to printer using USB and Bluetooth from Java (J2ME) app.

I write mobile phone apps in Java (J2ME). I want to print directly to a printer via USB and via Bluetooth. I cannot use a print job with the Java available to me. Once upon a time you could just send text and print control characters to a printer. I would like to be able to do that again. Alternatively could you provide a 'skeleton' data stream into which I could insert my code to produce what is sent to the printer when a print job is used with Java on a laptop or PC. I just want to sent simple text with a little formatting. 

Hi,
As far as printing to devices not all devices support Bluetooth. Many devices support Bonjour protocal, IPP. The main print port is 9100. Additionally you can see what IO protocols are supported on a product by looking at the EWS (Embedded WebServer) there should be a networking page with that information.  Port 9100 is your basic print port and different devices will support different formats (PDF, JPEG, PCL5, PCL6). If there is an API you can find (i am not familiar with J2ME availible calls, then you can use those and send the data to port 9100. Again that is the basic path most printers will accept. not all devices support bonjour not all device support bluetooth etc... Hope that helps and good luck.
I am an HP Employee.

Similar Messages

  • Page does not fit on paper when printed directly to printer

    Hi experts,
    I have developed a form in transaction SFP, using A4 as the paper format for the master pages. If I print to spool and preview and print my form from spool using transaction SP01, the form prints nicely. If I print directly to printer using the generated function module for the form (setting parameter REQIMM to true), the page does not fit on the paper (it is cropped), and also I do not get duplex printing.
    Why do I get different results when printing directly to printer as opposed to printing to spool first? How can I ensure that the form is printed correctly when printing directly to printer?
    thanks!
    Frank

    Did you check the window settings of the Firefox desktop shortcut to see how Firefox opens?
    Did you try to delete the current Firefox desktop shortcut and create a new shortcut?
    Use Restore or Maximize in the right-click context menu of the Taskbar icon to set focus to the Firefox application if you do not see the Firefox window.
    Open the system menu of that Firefox window via Alt+Space and see if you can move and resize that window (use the keyboard cursor keys).<br />
    If that works then first close all other open Firefox windows and then close Firefox via "File > Exit/Quit" to save that setting.

  • Form9i open word and print direct to printer

    I upgraded developer forms 6i to 9i and found problem in case of print direct to printer.
    The report was not create from develop reports but it create from Microsoft Word.
    I generate this report via developer forms call function to generate microsoft word and print it directly not preview but I found the problem when I printed it directly to printer. It didn't have any response from printer although I set up printer at printer server machine already.
    I try to test other printers and do the same but the problem still occur.
    My platform for testing shown as follow :
    ORACLE DBMS 9i
    Develop Form 9i
    Microsoft Word 97, XP
    Windows 98, XP
    Thank you for your suggestion.
    Best Regards,
    Pongsak S.
    Thailand
    [email protected]

    Use DESTYPE=PRINTER.
    http://docs.oracle.com/cd/E14571_01/bi.1111/b32121/pbr_cla005.htm#i637246

  • Can you print direct to printer?

    As the subject line ask "Can you print direct to printer?" instead of to the screen.

    Thank you for that, I tried to google it so the results would show something at sun web site but I did not have any luck
    [http://java.sun.com/docs/books/tutorial/2d/printing/|http://java.sun.com/docs/books/tutorial/2d/printing/]
    [http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter12/printScreen.html|http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part1/Java/Chapter12/printScreen.html]

  • Hp photosmart premium wireless C309 can't print after updating to IE 9 and i think java script

     hp photosmart premium wireless C309  can't print after  updating to  IE 9 and i think java script.  I am a realtor working from home and inorder to use the forms it required I update to IE9 and I think java,   this is the link.   http://www.car.org/tools/zipform6/   After doing so my printer does not work.  I tried to go on line and reinstall from a link on line but it did not work.  I don't know what to delete and what to add and how to get the " HP sSolution center" to work again.  the printer was already poor performance from day one.  Always having to unplug and restart and the black ink always runs out too quick.  but right now my concern is just being able to print and scan.  I am in the middle of a deal and can not communicate  with all parties effectively.  please help

    What error messages are you getting?
    What OS are you using?
    How is the printer connected to the computer?
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • How can i transfer my rarely used applications and files so i can make room on my computer harddrive?

    how can i transfer my rarely used applications and files so i can make room on my computer harddrive?

    Well the applications you should leave alone as they install files elsewhere that are needed like preferences etc that won't be on the external drive if you attempt to run it from there.
    Some programs are completely self contained and will run just fine from a external drive, but applicaiton's are usually small.
    Now your user files! That could use some thinning for sure! Especially stuff you don't use that often and Video files which take up a lot of space.
    You can buy a external USB drive at any office / computer supply store and just plug it in and backup files via drag and drop.
    What happens when you plug in a drive is TimeMachine will pop up and ask to make it a TimeMachine drive, this just backups up everything on your computer to restore from in case your OS X or boot drive fails. It's a image of your drive and so whatever is on the boot drive is on the TM drive. So that doesn't server your purpose which is you want to free some space off your main boot drive.
    However you should get another drive and allow TM to do it's thing to that drive, also to make a hold option bootable clone of your boot drive (using yet another external drive) using Carbon Copy Cloner or SuperDuper so in case your boot drive fails you can quickly and easily boot off the clone and have a working machine right away.
    One of the posters here has a excellent instructions what does what, both should be used to backup your data.
    http://web.me.com/pondini/Time_Machine/Clones.html

  • How many apple tvs can i use on one network from one apple account ?

    how many apple tvs can i use on one network from one apple account ?
    if i have 16 in each of my rooms connected to a network switch and a good fiber internet line
    will this work ok from my one account ? or would i neeed a mac book mini with raid storage set up ?
    any help would be very gratfully recived !
    james

    Welcome to the Apple Community.
    Homesharing allows up to 5 computers to be authorised and a total of 10 computers and devices to be associated with a single Apple ID.

  • How Achieve timedseries calculations with out using AGO And ToDate function

    Hi,,
    1)
    How Achieve timedseries calculations with out using AGO And ToDate functionion
    this question asking in interview ..is it possible..?
    if yes please response as soon as possible..
    2) i have 2 cloumns Product and value...
    client requirement is they need ranks based on Value ..in dashboard .using dashboard prompt..edit box...if user enter any number (ex :5 ) report should show top 5 ranks if he enter 20 should be top 20 ranks..
    how to achive this ?
    thanks,
    raj

    Consider yor first question:
    1. Yes, we can create timeseries measures without using AGO and TODATE
    1. Create ALIAS of fact tabe in the physical layer
    2. Join the Time id from the ALIAS fact table with the YAGO_MONTH_ID column from your time dimension table (For calculating Year Ago variants) similarly join with MAGO_MONTH_ID column for Month Ago measures.
    3.Pull the ALIAS tables as an additional Logical table source in the Lgical layer
    4.Keep the mapping of the columns from the ALIAS table as its is
    5. For e.g If you pick Revenue from the Year Ago Alias table it will give you the "Prior Year Revenue"
    See if this helps you

  • How do you save PDF to a USB flash drive from iPad 2

    How do you save PDF to a USB flash drive from iPad 2

    You can't, the camera kit connection kit which has a USB connection only supports the copying of photos and videos to the Photos app, and doesn't support the copying of any content off the iPad - you will either need to go via your computer.

  • Does anyone know how to get an ipad to use the wireless network from an airport?

    Does anyone know how to get an Ipad to use the wireless network from an airport express?

    By default, the AirPort Express will broadcast an unsecure wireless network with a Network Name of something like: Apple Network NNNNNN. Your iPad should "see" this network and be able to connect to it. Have you tried going through the iPad's Settings > Wi-Fi > Choose a Network... option. If so, does the AirPort's wireless network appear in the list of available networks?
    Can other wireless devices connect to the AirPort's network?

  • HT201210 if i dont want to restore my iphone,how do i get rid of the usb and itube sybol on my phone?

    If i dont want to restore my ophone ,how do i get rid of the usb and itunes symbol on my phone?

    Theres no way around it, you'll have to restore to have the phone working again.
    http://support.apple.com/kb/HT1808
    If your worried about losing your pics/videos, you can restore from backup once the restore is done.

  • How to pass the parameter values to the stored procedure from java code?

    I have a stored procedure written in sqlplus as below:
    create procedure spInsertCategory (propertyid number, category varchar2, create_user varchar2, create_date date) AS BEGIN Insert into property (propertyid, category,create_user,create_date) values (propertyid , category, create_user, create_date); END spInsertCategory;
    I am trying to insert a new row into the database using the stored procedure.
    I have called the above procedure in my java code as below:
    CallableStatement sp = null;
    sp = conn.prepareCall("{call spInsertCategory(?, ?, ?, ?)}");
    How should I pass the values [propertyid, category, create_user, create_date) from java to the stored procedure?[i.e., parameters]
    Kindly guide me as I am new to java..

    Java-Queries wrote:
    I have a stored procedure written in sqlplus as below:FYI. sqlplus is a tool from Oracle that provides a user interface to the database. Although it has its own syntax what you posted is actually PL/SQL.

  • How do I get my wife's photos and video from her iCloud to my iPad?

    How do I get my wife's photos and video from her iCloud to my iPad. She no longer has an iDevice and I want to retrieve some really sentimental photos and videos of my grandson. I've logged on to her iCloud account on my iPad, but don't know what to do next.
    Thanks
    Tony

    Her camera roll photos and videos would be included in her backup.  Restoring her backup to the iPad should recover them.
    Start by creating a current backup of your iPad that you can restore your data from later.  It's faster if you do this on your computer using iTunes; if you can't, create a backup in your iCloud account.  If you can back up to your computer, do this by connecting the iPad to your computer, opening iTunes and going to File>Devices>Back Up.  Then go to File>Devices>Transfer Purchases.
    Then erase the iPad and restore her iCloud backup as explained here: https://support.apple.com/kb/ph12521.  When it's done, import the recovered photos and videos to your computer as explained here: http://support.apple.com/kb/HT4083.
    Then erase the iPad again and restore the backup you made earlier, either from iTunes or from iCloud depending on where you backed it up.
    If you want the photos back on the iPad, put them in a folder and sync them to your iPad by selecting the folder on the Photos tab of your iTunes sync settings and syncing.  If you want to videos back on your iPad, import them to your iTunes library (File>Add to Library), then sync them to your iPad from the Movies tab of your iTunes sync settings.  You will then find them in the Home Movies section of the Videos app on your iPad.  Just so you are aware, photos that you sync to your iPad can only be removed later by syncing them off your iPad (by deselecting the folder on the Photos tab and syncing again).  They can't be deleted on the iPad itself.

  • How can I erase the residual background text and images from the backside of a scanned page?

    How can I erase the residual background text and images from the backside of a scanned page?
    Also, I wanted to know what each subscriptions included as far as my question above is concerned?
    I am trying to edit a scanned page (pdf file) by changing some words and erasing the background from the page that is showing through it since the paper is so thin and want to know which subscription to buy in order to complete these tasks?

    This cannot be done in Reader. I think you will need software like Photoshop. You may be able to get buy with Photoshop Elements, but I haven't used recent versions of that software. Using either software this will not be an automated task.

  • How do I get Calendar to suggest name and address from Contacts on my iPhone 5 in iOS 8?

    How do I get Calendar to suggest name and address from Contacts on my iPhone 5 in iOS 8?

    Restore it from your backup.

Maybe you are looking for