• Post Reply Bookmark Topic Watch Topic
  • New Topic

printing in j2me

 
Kobe Phenom
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i would like my mobile application to print information. can anyone help me how i would be able to do that or give me an example? thanks in advance.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For network printers, you can open a socket connection directly from the MIDlet to the printer and send print commands through the network. The "print commands" can be either in the PCL or PostScript language, depending on your printer.
For most PCL printers (HP models), if you just send text through the socket, it will print plain text.
I am not aware of generic printing toolkits under MIDP. Does anyone know?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!