Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #19983

Re: Come effettuare taglio scontrino su stampante termica

Path csiph.com!aioe.org!0+5cDJE07N8qkc1y2hvMew.user.46.165.242.75.POSTED!not-for-mail
From Franz_aRTiglio <franzgol@N0SPAMtin.it>
Newsgroups it.comp.lang.visual-basic
Subject Re: Come effettuare taglio scontrino su stampante termica
Date Sat, 10 Sep 2022 21:29:48 +0200
Organization Aioe.org NNTP Server
Message-ID <tfiofh$12j7$1@gioia.aioe.org> (permalink)
References <b3c09f3e-b47e-4b72-8352-9f14c7604aa2n@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding 8bit
Injection-Info gioia.aioe.org; logging-data="35431"; posting-host="0+5cDJE07N8qkc1y2hvMew.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-ICQ 1931503972
X-Newsreader MesNews/1.08.06.00-it
X-Antivirus AVG (VPS 220910-4, 10/9/2022), Outbound message
X-Notice Filtered by postfilter v. 0.9.2
X-Antivirus-Status Clean
Xref csiph.com it.comp.lang.visual-basic:19983

Show key headers only | View raw


Bruno D'Angelo ci ha detto :
> Salve a tutti. Ho intenzione di realizzare una applicazione che stampa 
> utilizzando una stampante termica, di quelle che stampano gli scontrini. 
> Usando printer.print "informazioni da stampare" non ho problemi. Ora vorrei 
> però eseguire un taglio, la stampante lo permette. Come faccio ad inviare i 
> codici ascii che trovo nella guida alla stampante?

printer.print "CIAO"

e

printer.print chr(67) + chr(73) + chr(65) + chr (73)


stampano entrambi la stessa cosa, solo che nel primo al comando
viene data una stringa, nel secondo una composizione di caratteri
ASCII, se per esempio, per tagliare devi "stampare" i caratteri


ESC

A

B


il comando può essere sia


printer.print chr(27) + "AB"

printer.print chr(27) + chr(65) + chr(66)

Back to it.comp.lang.visual-basic | Previous | NextPrevious in thread | Find similar


Thread

Come effettuare taglio scontrino su stampante termica "Bruno D'Angelo" <dangelo.bruno61@gmail.com> - 2022-09-10 10:53 -0700
  Re: Come effettuare taglio scontrino su stampante termica Franz_aRTiglio <franzgol@N0SPAMtin.it> - 2022-09-10 21:29 +0200

csiph-web