Zebra Technologies P1061668-001 manual Example STX

Page 22

20

Kiosk Modifications of the OLE for Retail POS

DirectIO Method

The calling application has to prepare the DirectIO function with the following data: {STX}

and the printout with the following data: {ETX}.

After sending of {STX} you can send all valid KPL commands to the printer but they have to be in binary format.

Example • ESC N 1 should be sent as 27 N 1. Where 27 is the binary decimal value for ESC.

Example • {STX}

<ESC>N<1>Zebra Technologies<CR><LF> <ESC>N<1>lincoln, RI, 02865<CR>><LF> <CR><LF>

<ESC>N<1>10/08/0912:04<CR><LF> <CR><LF>

<ESC>N<1>OOS Driver DirectIO sample<CR><LF> <CR><LF>

<ESC>N<0>NO. : 000192<CR><LF>

<ESC>N<0>Date: 10/08/2009<CR><LF>

<ESC>N<0>Printouts: 1<CR><LF> <ESC>N<0>OPOS driver for Kiosk use<CR><LF> <ESC>N<0>Receipt printing<CR><LF> <ESC>N<0>Theater tickets<CR><LF> <ESC>N<0>etc.<CR><LF>

<ESC>N<0>No. : 000192<CR><LF> <ESC>N<0>Zebra Technologies<CR><LF> <CR><LF>

<CR><LF>

<ESC>N<1>Signature: ________________________<CR><LF>

<ESC>N<1>JOE DOE<CR><LF> <CR><LF>

<ESC>BS<0><0><h 48><0><0><0><0><h 40><0><2><2> <ESC>BW<0>733104000099<0>

<ESC>BS<1><0><h 28><0><0><0><0><h 40><4><2><2> <ESC>BW<1><193>JOEDOE<0>

<RS>

{ETX}

Entering a command of 0 or 1 will result in printing the buffer with KPL and ending the page after the command. There is no continuation of the data possible with these Commands.

P1061668-001 Rev. A

OPOS Driver User Guide

11/25/2013

Image 22
Contents Zebra Kiosk Opos Driver User Guide Page Contents Contents Who Should Use This Document Opos InformationEpson Fujitsu-ICL Microsoft OLE for Retail POS CommitteeCore Companies NCRDocument Conventions Icons UsedDocument Conventions Compatible Operating Systems Kiosk Opos Driver InstallationHardware Requirements Following sections describeInstalling the Opos Driver Before Installing the Opos DriverTo install the Kiosk Opos Driver List of available drivers appear Kiosk Opos Driver Installation Kiosk Opos Driver Installation Kiosk Opos Driver Installation Testing the Installation Zebra Opos Printer Service Object Test Tool appearsKiosk Opos Driver Installation Kiosk Modifications of the OLE for Retail POS OLE for Retail POS ControlsDevice Power Reporting Model How an Application Uses an Opos ControlSummary of Common Properties, Methods, and Events Common PropertiesCommon Methods Common EventsOpossuccess Use of DirectIO has one valid command entryDirectIO Method Direct I/O successfulExample STX Events POS Printer SummaryYES Specific PropertiesCapRecDwide Boolean Open CapRecBitmap Boolean OpenCapRecBold Boolean Open CapRecDwideDhigh Boolean OpenErrorString Open ErrorLevel Long OpenErrorStation Long Open CartridgeNotify Long Open CharacterSetJrnNearEnd Boolean JrnLetterQuality BooleanJrnEmpty Boolean JrnCartridgeState LongSlpLineWidth Long SlpLineCharsList String Open SlpLineHeight LongSlpLineSpacing Long SlpLetterQuality BooleanSpecific Methods General Information EventsESC #P Data Characters and Escape SequencesOne Shot Data Characters and Escape Sequences ESC #BESC #E Print Mode Data Characters and Escape SequencesESC #R ESC 2C Print Line Data Characters and Escape SequencesESC 1C ESC 3CNormal Restores printer characteristics toRight justify ESC rA Aligns following text at the right ESC NProperties MapMode Property CharacterSetList PropertyFontTypefaceList Property RecBarCodeRotationList PropertyRecLineWidth Property RecLineSpacing PropertyRecLinesToPaperCut Property RecSidewaysMaxChars PropertyCutPaper Method MethodsPrintBarCode Method One Dimensional Symbologies Two Dimensional SymbologiesPrintBitmap Method RotatePrint MethodSetBitmap Method Kiosk Modifications of the OLE for Retail POS Page Zebra Technologies Asia Pacific, LLC Zebra Technologies CorporationZebra Technologies Europe Limited ZIH Corp P1061668-001 Rev. a