-
-
Save parzibyte/5fc54c7247bd6848eb614d6086ebc185 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var impresoraComoArchivo = new FileStream(fh, FileAccess.ReadWrite); | |
impresoraComoArchivo.WriteByte(0x1b); // ESC | |
impresoraComoArchivo.WriteByte(0x40); // @ | |
impresoraComoArchivo.Write(Encoding.ASCII.GetBytes(textoParaImprimir), 0, textoParaImprimir.Length); | |
impresoraComoArchivo.WriteByte(0x1b); // Feed | |
impresoraComoArchivo.WriteByte(Convert.ToByte('d')); | |
impresoraComoArchivo.WriteByte(Convert.ToByte(1)); // 1 línea | |
impresoraComoArchivo.Dispose(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment