Zebra KR203 Especificações Página 36

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 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);
Vista de página 35
1 2 ... 31 32 33 34 35 36

Comentários a estes Manuais

Sem comentários