Closing The Dtr Driver; Writing To The Dtr Driver; Dtr Printer Communications - Intermec 700 Series User Manual

Color mobile computer
Hide thumbs Also See for 700 Series:
Table of Contents

Advertisement

SECTION 5

Closing the DTR Driver

Using the CloseHandle() (hFile) function closes the DTR driver. Where hFile is
the handle returned by the CreateFile() function call.
"
"

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
3. Use CloseHandle() to close the driver.
TRUE indicates the device is successfully closed.
FALSE indicates an attempt to close a NULL HANDLE or an already
closed device.
all data were written.
700 Series Color Mobile Computer User's Manual
Printer Support
5-7

Advertisement

Table of Contents
loading

Table of Contents