Printing in text mode to dot matrix printer 
Author Message
 Printing in text mode to dot matrix printer

Hi,
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.
As far as I searched over the references, I found nothing about it, but
Im sure there is a way to do it. Ill by very grateful if someone can
help me.

Thanks in advance, :)

Moshe



Sun, 02 May 1999 03:00:00 GMT  
 Printing in text mode to dot matrix printer

See "Re: ****** Sending ESCAPE CODES to a Printer ... How the Hell do you
do it ???!!! *******" posted by me yesterday

Hope it helps

Hugo Silva



Quote:
> Hi,
> 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.
> As far as I searched over the references, I found nothing about it, but
> Im sure there is a way to do it. Ill by very grateful if someone can
> help me.

> Thanks in advance, :)

> Moshe



Sun, 02 May 1999 03:00:00 GMT  
 Printing in text mode to dot matrix printer


Quote:

>Hi,
>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.
>As far as I searched over the references, I found nothing about it, but
>Im sure there is a way to do it. Ill by very grateful if someone can
>help me.

>Thanks in advance, :)

>Moshe

Moshe,

Try this

Dim Test as String
String = "This is a printer test"
Open "LPT1:" for Output as #1

Print #1, Test; chr(12)
Print #1, Test; chr(12)

Close #1



Tue, 04 May 1999 03:00:00 GMT  
 Printing in text mode to dot matrix printer

If the printer in question is the default printer and you have the
correct driver for it, you should be able to select one of the printer's
internal fonts from the font list.  This should do what you want.  You
should also be able to assign the TTY (teletype - really primitive!)
driver to the printer, in which case it should also be treated as a
character-only device.



Tue, 04 May 1999 03:00:00 GMT  
 Printing in text mode to dot matrix printer

Quote:

> Try this

> Dim Test as String
> String = "This is a printer test"
> Open "LPT1:" for Output as #1

Ray: Try it yourself before posting.  VB don't like the colon.
--
Peter Hesketh from Mynyddbach, Monmouthshire, UK


Tue, 04 May 1999 03:00:00 GMT  
 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



Tue, 04 May 1999 03:00:00 GMT  
 Printing in text mode to dot matrix printer

SS> I*m quite new with VB, working with VB 4.0 on Windows 95, and I wond
SS> if it is possible to print in text mode to a dot matrix printer. (no
SS> graphics and truetype fonts, just plane raw text in the old Dos styl
SS> As far as I searched over the references, I found nothing about it,
SS> I*m sure there is a way to do it. I*ll by very grateful if someone c
SS> help me.
In Windows the way to send raw text to a printer is using the fonts of
the printer. You'll recognize them looking at the icon at the left, it
resemble a printer. Of course you have to get the printer driver
selected before choosing fonts

 * RM 1.31 3339 *

-----------------------------------------------------------------------------

New Age BBS - Now online! - +54(1)-797-9713 - Florida, BA - Argentina.
-----------------------------------------------------------------------------



Mon, 10 May 1999 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. VB -Printing to Dot Matrix Printer in Text Mode

2. Printing a fixed width text file to dot matrix printer

3. Trying to print in compressed mode on dot matrix - Help

4. Trying to print in compressed mode on dot matrix - Help

5. how to print reports at dot matrix printer?

6. Printing to dot-matrix printer...help!

7. * How do I control printing to a Dot Matrix Printer

8. * How do I control printing to a Dot Matrix Printer

9. printing speed in Dot Matrix printer vary slow

10. Slow Printing in Dot Matrix Printer

11. CR6 + VB6 Printing at dot matrix printers

12. Printing to dot matrix printer

 

 
Powered by phpBB® Forum Software