Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active July 5, 2023 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/0dc0d7c85bc28bb100d8debd370c2d6c to your computer and use it in GitHub Desktop.
Save parzibyte/0dc0d7c85bc28bb100d8debd370c2d6c to your computer and use it in GitHub Desktop.
const imprimirAcentosConTextoNormal = async (nombreImpresora) => {
const conector = new ConectorPluginV3(null, "licencia opcional aquí");
conector.Iniciar();
conector.EscribirTexto("¡Gracias por su compra, María José!\nFeliz año nuevo");
conector.Feed(1);
const respuesta = await conector
.imprimirEn(nombreImpresora);
if (respuesta === true) {
alert("Impreso correctamente");
} else {
alert("Error: " + respuesta);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment