Avery-dennison Platinum 6039 JavaScript Manuel d'utilisateur Page 24

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 94
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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>
Vue de la page 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 93 94

Commentaires sur ces manuels

Pas de commentaire