• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to work with a printer using JNI  RSS feed

 
shridhar subramanian
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i want to connect and work with a printer which is connected in COM port.
Can i able to do that using JNI.
Please help me in this
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi shridhar,
I don't think that'll be simple. Your jni code will need to fight for the com port so really needs to be dll. I think Sun have a special download for talking to com port.
Or you could look at the java tutorial for printing,
but that is not simple either.
[ March 01, 2004: Message edited by: Eddie Vanda ]
 
shridhar subramanian
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Thanks Eddie Vanda for your reply.
Can u give me some guidelines, so that i will atleast try that configuration.
And if i am going to use java printing,will i be able to get flexibility to print in landscape or portrait,control over page width etc..
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shridhar s,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy. We'd like display names to have last names of more than one character.
Thanks Pardner! Hope to see you 'round the Ranch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!