Dot Matrix Printer - Escape Sequences

Morning,

I am in the process of developing a Cheque Printing application in VB.Net and will be using an  “OKI Microline 390 Turbo” as my printer on Windows 7 32-Bit. I’ve found that the “Generic/Text Driver” works best for my needs with this printer as sending the output in RAW mode works very well.

As this is the first time I play with dot matrix printers I’m having a hard time understanding the different emulations these printers use with “escape sequences”. I’ve downloaded the manual for my ML 390 Turbo and see that I can switch between 3 different emulations (Epson LQ, IBM PPR and IBM AGM).

My questions are:

1.      Which emulation (Epson LQ, IBM PPR and IBM AGM) should I use? My application prints information on a Cheque so will be ONLY text, I need to be able to control the font type and size, positions etc.

2.      Will the suggested emulation in question 1 work with the “Generic/Text Driver” I have given my printer to use?

3.      What sort of escape commands (ASCII, Decimal, Hex Decimal) should be used with the emulation? And why is there a difference to begin with, don’t they all to the same thing?

4.      Are you able to provide some written examples as to how to use the different types of escape sequences?

5.      Having a look at the printers properties of the “Generic/Text Drive” I am seeing an area where I can input escape commands (screenshot below). I would prefer to issue the escape sequences from my code rather than through this window, is this possible? Or must I also input information via this window.

PrinterPropertiesESCCommands
Kindly advise.

Regards,
N
LVL 1
KevinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dr. KlahnPrincipal Software EngineerCommented:
1. Epson LQ is probably the most widely used among dot matrix printers.

2. The generic/text driver passes through everything, including escape sequences.

3. Which set of commands you use is up to you.  ASCII commands are popular becase they can be generated directly in most programs without resorting to CHR$ or the language equivalent.

4.  If you Google you'll be able to find that information in a form that's applicable to your application environment.  It would take up too much space and time to provide it here.

5.  The escape sequences are sent from the application as part of the print job.  The printer drive page cited above provides a place for you to issue commands that must be send at the start and end of every print job, for example, "feed to end of form", "reset printer to defaults" and so on.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KevinAuthor Commented:
Great, thank you for your response.

Kind Regards,
N
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Printers and Scanners

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.