TIP: Click on subject to list as thread! ANSI
echo: visual_basic
to: All
from: Adrian Birkett
date: 2004-06-22 17:38:00
subject: Re: printing problem, esc

Johnny wrote:

>Hello
>
>I have created a small project in VB.NET where I am printing what is inside
>a text-box. This is going well.
>But, I need to end the print-job by sending some escape-codes to the
>printer, since this is a printer printing out strips and I need to give it a
>Cut-Paper-command.
>
>Does anyone know how to send escape-codes to a printer using VB.NET ?
>
>Best regards
>Johnny
>
>  
>
Hi,

Never used .NET but how about simple chr$(value);x;x;x;x;x;x     where 
value = 27 for ESCAPE or 155 for CSI and xxx= the remainder of the 
control code?

Just a thought

Ade
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com

---
 * RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
 * RgateImp.MoonDog.BBS at 6/22/04 5:38:45 PM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)
SEEN-BY: 633/267 270
@PATH: 278/230 10/345 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.