Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing with 300dpi

 
Manuel Stoehr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam very new to printing in Java.
My problem is to print a JPEG with 300dpi to a Label-Printer with also 300dpi
When the Image is printet, its much more larger then the File, the Resolution is
only 72dpi.
How can i increas the Resolution to print with full 300dpi ?

Here my Code:



has anyone experience with printing more then 72dpi in java ?

greez
Slacki
 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Try using




Cheers!!!

Ujjwal B Soni
<baroda>
<gujarat>
<india>
<919998971048>
 
Kunal Sapru
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm also having the same problem. I'm using TSC-TTP-244 Plus barcode thermal printer and its resolution is 203 dpi.

I tried both the codes. In the first one a very small image is being printed spanning over 3 ribbon labels....

I also updated the code with the 2nd block and got the following exception:

Exception in thread "main" java.lang.RuntimeException: No printer services available.
at com.halo.struts.action.PrintImage.main(PrintImage.java:43)

Thanks & Regards,
Kunal Sapru
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic