Zebra KR203 Spezifikationen Seite 36

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 36
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 35
Appendix B
Programming Example
B-2
P1028251-001 Rev. A KR203 Windows CE Software Integrator Guide 3/1/2011
Monitoring While Idle
In order to get status any time a status thread has to be implemented which reads printer
status and provides changed status information in the same manner. The following code
snippet in C# may be used as a guide to develop such an application. The code is using
the KRConfig DLL.
KRConfig config = new KRConfig();
config.Load();//Load settings from registry
string msg = "";
try
{
config.open("LPT1:");
//getStatus is not synchronized with other read/write
functions
byte status = config.getStatus();
msg = "Status : " + status;
config.close("LPT1:");
}
catch (Exception ex)
{
msg = ex.Message;
MessageBox.Show("Status : " + msg);
Seitenansicht 35
1 2 ... 31 32 33 34 35 36

Kommentare zu diesen Handbüchern

Keine Kommentare