
Printing in text mode to dot matrix printer
Quote:
>Im quite new with VB, working with VB 4.0 on Windows 95, and I wonder
>if it is possible to print in text mode to a dot matrix printer. (no
>graphics and truetype fonts, just plane raw text in the old Dos style.
1. Make sure you have the correct driver for the printer.
2. Tell VB which printer to use.
3. Tell VB which printer font to use.
Now this prints, in the selected printer font, to the selected
printer. In most cases you'll end up with LQ or NLQ text at the
printer. What you probably want is draft mode (AKA as fast as
possible). The least painless way to change this is use the printer's
setup dialog. You can also use ExtDeviceMode or Escape, from the Win
API to set draft printing, BUT they do not work consistently across
printer drivers. Don't ask me how the printer's setup dialog can do
this but ExtDeviceMode and Escape can't (I've never got a good answer
to this one, anyone know one?)
Frank Mokry