Zebra Technologies TTP 2030 manual Port Monitor, Print Spooling, Status Monitoring

Page 9

 

 

Windows CE Driver

 

 

Description

 

Table 1 • Driver Functions

 

 

 

Function

 

Description

 

 

 

DrvGetModes

 

Lists the modes supported by a specified device.

 

 

 

DrvStartDoc

 

Called by the GDI to start a print job.

 

 

 

DrvStartPage

 

Called by the GDI to start printing the next page of a print

 

 

job.

 

 

 

GetPrinterInfo

 

Obtains information about printers, such as the name of

 

 

the printer or whether the printer can print in color.

 

 

 

PrinterClose

 

Closes a printer handle previously opened by a call to the

 

 

PrinterOpen function.

 

 

 

PrinterOpen

 

Opens a specified printer port and returns a handle to the

 

 

printer.

 

 

 

PrinterSend

 

Sends a block of data to a printer.

 

 

 

ReportPrinterStatus

 

Returns the status of a printer or printing operation that is

 

 

in progress.

 

 

 

GetPrinterStatus

 

Returns a specific TTP 2030 status.

 

 

 

Port Monitor

The port monitor for the TTP 2030 is called TTPPort.DLL. Printing is supported over universal serial bus (USB) port only. The printing architecture provides application programming interfaces (APIs) that are exposed by the Graphics, Windowing, and Events Subsystem (GWES) to communicate with the printer driver. The printer driver communicates with the port driver that sends the print data over the supported bus. Therefore, the printer driver is independent of the bus and the corresponding bus driver.

5

Print Spooling

No separate printer spooler component exists in Windows CE, unlike the desktop versions of the Windows OS. With Windows CE, spooling or background printing is implemented in the printer driver itself. However, because print spooling typically consumes a lot of memory, limited memory might be a problem. A practical print spooler usually has to implement a complicated compression scheme to store spooled documents before printing.

Status Monitoring

In order to allow applications to get status from the printer, there are two functions implemented:

ReportPrinterStatus – the default function described in the MSDN documentation.

GetPrinterStatus – the function that returns the actual printer status (described below).

4/14/2013

TTP 2030™ Windows CE Software Integrator Guide

P1055866-001

Image 9
Contents Zebra TTP Page Contents Troubleshooting Who Should Use This Document How This Document Is OrganizedDocument Conventions Introduction Windows CE Driver DescriptionDriver Functions Printer DriverPort Monitor Print SpoolingStatus Monitoring TTP 2030 Status codes GetPrinterStatusNAK 0F Types of Status MonitoringControl Panel Extension Printer and Driver Parameter Setting and MaintenanceFirmware Update InstallationCE Driver Installation UI OptionTo create a shortcut file Command Line OptionDevice Settings Printer SettingsMedia Height Media WidthDarkness Max Print SpeedMedia Tracking Cutter ModeTop Margin Bottom MarginPartial Cut Width Presenter TimeoutPresenter Loop Length Eject LengthClear Presenter Presenter ModeTools Tab ToolsAbout tab shows the current driver version AboutTo set black mark mode Setting Black Mark ModeLED States Status Light DescriptionsTroubleshooting Print Quality Problems Status IndicatorNo print on the label Printed image does not look right Black Mark Calibration Process Media Sensing ProblemsPrinter will not eject the media Printer will not load the mediaReceipts are not cutting properly Other ProblemsThere are no lights on the printer Receipts are not cutting at the black markContact Technical Support