Intermec CN2B Manual de usuario Pagina 136

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 264
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 135
Chapter 5 — Printer Support
118 CN2B Mobile Computer User’s Manual
The first parameter “DTR1:” must reflect the device name and index used
in the RegisterDevice() function call.
The function call will fail for any of the following reasons:
The port associated with the device during RegisterDevice() is currently
in use.
The DTR device is already open.
The share mode is not set to zero. The device cannot be shared.
Access permissions are not set to GENERIC_WRITE.
Closing the DTR Driver
Using the CloseHandle() (hFile) function closes the DTR driver. Where
hFile is the handle returned by the CreateFile() function call.
TRUE indicates the device is successfully closed.
FALSE indicates an attempt to close a NULL HANDLE or an already
closed device.
Writing to the DTR Driver
You can use the WriteFile() function to send all Print data to the printer.
The print data being written must contain the proper formatting printer
commands.
DTR Printer Communications
All DTR printer communications should be based on the following flow:
1 Use CreateFile() to open the printer driver.
2 Use WriteFile() to write your data to the printer. Check for errors and
that all data were written.
3 Use CloseHandle() to close the driver.
Vista de pagina 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 263 264

Comentarios a estos manuales

Sin comentarios