Avery-dennison Platinum 6039 JavaScript Bedienungsanleitung Seite 24

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 94
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 23
3-6 Programmer’s Manual
Battery
IsBatteryOKToPrint
Description
Checks if the printer’s LiIon battery (located in the handle) is charged
enough to allow printing. Check the battery level before any printing
session.
Use this function immediately prior to printing, but not
during printing. If you use it during printing, the return
value is not accurate.
Syntax
IsBatteryOKToPrint
Parameters
None
Return Values
false
The battery level is too low to allow printing.
true
The battery level is high enough to allow printing.
Example
<SCRIPT src="./jsUltra.js"></SCRIPT>
<SCRIPT type="text/javascript">
PRINTER
.ClearSystemError(): // Clear any errors
if (PRINTER.IsBatteryOKToPrint) // OK to Print
alert("Low Battery");
</SCRIPT>
<BODY>
<OBJECT id=”PRINTER” style="LEFT: 0px; WIDTH: 0px; TOP: 0px;
HEIGHT: 0px"
classid=clsid: 19C1754D-BA97-43A1-A06D-496D2167400B>
</OBJECT> //Instantiate Class
</BODY>
Seitenansicht 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 93 94

Kommentare zu diesen Handbüchern

Keine Kommentare