printer control object - cannot send Esc character to printer 
Author Message
 printer control object - cannot send Esc character to printer

Hi,

  I got a problem, I want to use the printer object to send out some
printer control command to the printer but it didn't work.

  e.g.  printer.print  chr$(27) + "6"  

  If I use this on the following, it work fine

  e.g.  Open "c:\test.txt" as output #1
        print #1, chr$(27) + "6"
        close #1

  So does any one know how to send the Esc sequence of printer control
through the printer object?

Thanks

Paul Chan



Sat, 18 Sep 1999 03:00:00 GMT  
 printer control object - cannot send Esc character to printer

Quote:

> Hi,

>   I got a problem, I want to use the printer object to send out some
> printer control command to the printer but it didn't work.

>   e.g.  printer.print  chr$(27) + "6"

...
You may bypass the printer object:
  open "lpt1" for Output as #1
  Print #1, Chr$(27) + "6";

Ciao
Alessio



Tue, 21 Sep 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to send a ESC control to dot matrix printer from VB

2. VB Code for Esc Characters to the Printer

3. bug sending text to printer via printer object

4. Help, How to send printer command to printer bypassing printer driver in vb

5. need help sending control characters epson printer

6. Sending ESC Codes to Printer from VB4-Pro in WIN95 and WIN-NT

7. sending ESC commands to printer

8. Send ESC to printer

9. how send esc-sequences to printer

10. Sending Printer control Codes to printer

11. Control character => Printer object

12. Control character => Printer object

 

 
Powered by phpBB® Forum Software