Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to print text to Dot Matrix Printer

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone tell me how do we print text to dot matrix printer.
 
Saloon Keeper
Posts: 12132
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you likely have to write some sort of native code to communicate with the operating system, which has drivers for the printer.

However, this is probably not easy, and I would think that there are already third party libraries out there that have solved this problem. So google around for solutions that other people have made.
 
Stephan van Hulst
Saloon Keeper
Posts: 12132
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, if you googled around a little bit, you might find that you could access the printer like a file, and simply write text to it directly.
 
Hang a left on main. Then read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic