aspose file tools*
The moose likes I/O and Streams and the fly likes Printing with 300dpi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Printing with 300dpi" Watch "Printing with 300dpi" New topic
Author

Printing with 300dpi

Manuel Stoehr
Greenhorn

Joined: Feb 06, 2009
Posts: 1
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

Joined: Mar 28, 2007
Posts: 403
Hi,

Try using




Cheers!!!

Ujjwal B Soni
<baroda>
<gujarat>
<india>
<919998971048>


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Kunal Sapru
Greenhorn

Joined: Jul 08, 2010
Posts: 9
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

SCJP 5, SCWCD 5
 
Don't get me started about those stupid light bulbs.
 
subject: Printing with 300dpi