troubleshooting Question

Print customized sized print on dot matrix printer

Avatar of Aurii
Aurii asked on
JavaEditors IDEs
6 Comments1 Solution2108 ViewsLast Modified:
I need to print text from my JFrame to a dot matrix printer. I want to print it directly without asking confirmation dialog.
I want to print on the paper whose width is 3 inch and height may vary because I am going to use it for super market software where item list may content 2 items or 500 items. It depends on items.
Port of printer may be LPT 1, serial, Usb, etc anything. I want my code to be use for any printer.
Also I want to know that for this purpose I should set the size of page through code or it will automatically? Actually I prefer automatic. So please suggest me solution on that way.

Please help
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros