How do I print Epson control characters to an Epson printer using VB5 
Author Message
 How do I print Epson control characters to an Epson printer using VB5

Hi

Please help!!!

I'm trying to print Epson printer control characters to an Epson Dot matrix
printer, using VB5, and the generic / text only driver.  I can print control
characters to the printer, using QBasic, and the LPrint command, but in VB,
the characters just go through as text, and not interpreted by the printer.

Also, in Windows 3.1 days, the generic text only driver had a wide carriage
option. The Generic Text Only driver no loner has it.


Thanks

Steven Green



Sun, 24 Sep 2000 03:00:00 GMT  
 How do I print Epson control characters to an Epson printer using VB5

How are you sending the codes exactly?  Are you using the Printer object?
Or are you sending the codes to LPT1 as if it were an open file.  (open
"lpt1:" for binary as #1)?
I think, although I haven't tried it, that the equivalent to:
LPRINT CHR$(27);CHR$(64)
is:
Dim codes
codes = CHR$(27) & CHR$(64)   ' or CHR$(&h1B) & CHR$(&h40)
open "LPT1:" for binary as #1
put #1, , codes
close #1
Mick



Sun, 24 Sep 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. need help sending control characters epson printer

2. Post Net Bar code printing on Epson action 5000 printer

3. Printing to Epson Printers

4. printing with an Epson laser printer

5. Help with printing to Epson DFX printer from VB6

6. Anybody facing printing alignment problem with epson lx1170+ printer

7. Help with printing to Epson DFX printer from VB6

8. print CR report in a pos printer (epson TM L60II)

9. Help - Must speed up printing on an Epson dot-matrix printer

10. Help with printing to Epson DFX printer from VB6

11. Problem when using receipt printer (Epson TM-U300PA)

12. Reg: Using Vb code how to perform some functions in Epson LQ-300 printer

 

 
Powered by phpBB® Forum Software