Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controling a Serial Printer via ESC Sequence

Status
Not open for further replies.

DBG

Programmer
Apr 18, 2000
10
GR
Hi all,<br>I`ve tryed to send a ESC Sequence to a HP2934A Printer. <br>The Printer did not recogize the Command and printed the Sequence like normal Text.<br><br>The Printer is connected to COM1 and defined as Standardprinter<br><br>My Code<br>...<br>cString = Chr(27) & &quot;*c2M&quot; 'ESC Sequence found in Printer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Manual <br>Printer.Print cString<br>...<br>Printer.EndDoc<br><br>Has somebody an idea how i can solve this.<br><br>thanks for all comments <br>Dietmar Bautz
 
Hai Dietmar...<br><br>You can try command like this<br><br>Open &quot;Com1:&quot; For Output as #1<br><br>Print #1,chr(...)+chr(...)+chr(...) depend on your printer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top