-
-
Save parzibyte/1ca66036bb47ed3c8a405afd83f20d22 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
let impresora = new Impresora(RUTA_API); | |
impresora.setFontSize(1, 1); | |
impresora.write(`Tratando de imprimir en ${nombreImpresora} | |
`); | |
impresora.write(mensaje); | |
impresora.cut(); | |
impresora.cutPartial(); // Pongo este y también cut porque en ocasiones no funciona con cut, solo con cutPartial | |
impresora.imprimirEnImpresora(nombreImpresora) | |
.then(valor => { | |
loguear("Al imprimir: " + valor); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment