Datamax 7A300007 Rev. 2 Draw Rectangle DrawRectangle x1, y1, x2, y2,color,width, Command Name

Page 44

Command

Name

<b>, </b>

Bold

<u>, </u>

Underline

<h = value>

Text Height

<w = value>

Text Width

<f = value>

Font

\n

New Line

\<, \>, \”, \\

Literals

Description

Text enclosed by <b> and </b> appear in bold. Text enclosed by <u> and </u> are underlined.

Text height is magnified by the given numeric value. Use <h = 1> to return to original size. Text width is magnified by the given numeric value. Use <w = 1> to return to original size. Sets the font. value = {0 .. 9}.

Moves the cursor to the beginning of the next line. Use backslashes to print these special characters.

Example: The figure below shows the use of the “\n” command as well as the effect of the angle command in the text being printed with the DrawText command

Draw Rectangle

DrawRectangle (x1, y1, x2, y2,color,width);

Draws a rectangle object at any coordinate on the canvas.

DrawRectangle command draws either a hollow or a filled rectangle. (x1, y1) and (x2, y2) specify the two diagonally opposing corners. All measurements are in dots.

Parameters:

x1, y1

Top left corner coordinates (x1, y1)

x2, y2

Bottom right corner coordinates (x2, y2)

color

Specifies the line or fill color: 0 = white, 1 = black

 

The user may draw a white rectangle on a black background only by specifying color

 

parameter = 0.

width

Specifies the line width of a hollow rectangle. A zero-width results in a filled rectangle

Draw Bar Code

DrawBarcode(x,y,angle,annotate,type,height, "data");

Draws a barcode object at any coordinate on the canvas.

Parameters:

X

Indicates location on “x”

axis of the left top corner

Y

indicates location on “y”

axis of the left top corner

angle

Values 0, 1, 2, or 3 allow the barcode to be rotated 0, 90, 180, or 270 degrees respectively

annotate

Setting annotate to 1 allows human-readable text to appear. ‘0’ disables this function.

type

Indicates the barcode type to be printed. The barcodes supported are listed below:

38

Image 44
Contents Apex & Andes Series Page Copyrights Document Revision History Contents Dip Switch Settings Communications Settings’Neil Line Print mode Datamax-O’Neil Printer Command Language ExPCL IntroductionCommunications EOTXON XoffSelect Character Pitch Mode ESC K n CR Character SetsCharacter Size and Line Spacing Select Character Set Esc F nAndes3 Select Character Pitch Mode ESC k nApex APEX4 Character Size and Line Spacing Width and Height Emphasized Printing Mode ESC U n Underline Printing Mode ESC U nSelection U Underline Mode on u Underline Mode OFF Character AttributesSelection R Reverse printing on n Reverse printing OFF Reverse Print ESC U nRight to Left and Left to Right Printing ESC F n Horizontal Position Carriage ReturnCRBackspace Horizontal TabVertical Position Line FeedLFVariable Size Line Feed ESC J n Variable Size Reverse Line Feed ESC Q J nBar Codes Set Vertical Tab Height ESC T V nForm Feed Set Form Feed Length in Dot Lines ESC T F n1 n2Code 39 Specifications Print Bar Code with Human Readable TextHEX DEC Code a Code B Code C Code 128 SpecificationsDescription Character set Elements per symbol UCC/EAN-128 Specifications DescriptionInterleaved 2 of 5 Specifications UPC/EAN/JAN SpecificationsElements per Codabar SpecificationsSymbol Character density GS1 DataBar Specifications Character set QR Code ModelsDecimal Page Page Page QR Code Specifications Symbol Character/symbol Error correctionElement Width Value Length in mil Compaction Mode Description Encoding CapabilitySecurity Level # Error-Check Code Words Bit Graphics GraphicsBarcode Height Multiplier ESC z h n Function Bit Compressed GraphicsGraphic String Component Enable Buffer Mode Disable Buffer Mode Select Online ModePrinter Controls Data Processing ESC P $Printer Controls Printed Output Adjust Print Buffer Contents Buffer ModeESC P + ESC PPrinter Controls Reset Printer Controls PowerCan ESC @Extended Auto Power Down Command Command String Printer ResponseSYN Printer Status CommandsSTX Magnetic Card Command String Description Magnetic Card ReaderQuery Printer Model and Hardware Revision Level Track Position Track2 Track3Magnetic Card Read Error Messages Error #Magnetic Card Data Output Format Interfacing to the Magnetic Card ReaderESC Q R CR Black Mark Sensing Control CommandsESC C Black Mark Sensing Command Mode Black Mark Sensing Auto ModeEnable Back Black Mark Sensor ESC Q b e CR Disable Back Black Mark Sensor ESC Q b d CRPrinted Receipt/Label Presenter Positive Adjust ESC Q D + n Printed Receipt/Label Presenter Positive Adjust ESC Q P nPrint Commands Configuration Printed Receipt/Label Presenter Negative Adjust ESC Q D nEnter the Page Printing Mode ESC P PPrint Commands Draw Commands Command Name Draw Rectangle DrawRectangle x1, y1, x2, y2,color,widthType Value Barcode type HeightForm FiestaTM ESC S L Download Printer Default SetupESC D S Download Self test Message Hardware Information Start Hardware Information download processESC S Print Hardware Information ESC L gDownload Logo ESC D L CR LFEnable Font Downloading Download FontsESC D F CR Display Tables InformationDisable Font Download Mode Display Font Download Current Settings ESC F S m t k f CRESC D I CR ESC FSelect Load Operating Mode ESC F M m CR FlashImportant Font Downloading Notes ESC F B CRExample 1 BBX 08 23 0 Example 2 BBX 08 23 0Bluetooth & WiFi Setup Command Select Pass-Thru Command Mode ESC P U n1 U n2 T t0 t1 t2 CR’Neil Line Print mode EmulationSelect Emulation ESC E n Emulation LanguageEsc C n Esc a n Can Esc V n1 n2 Communications Settings Dip Switch SettingsOFF OFF 2USBRJ25 Connector PIN # Functional Description Signal Name Serial Communication RS232CSerial Busy Protocol XON/XOFF ProtocolRS232C Technical Specifications Dip switch settingUSB Communication USB OverviewBluetooth Communications Software Driver InstallationUSB Technical Specifications TeraTerm ExampleBluetooth Interface Power Modification Manual Power OFF ModeAutomatic Power OFF Mode SettingsWi-Fi Communication Option Printer Status Indicator LED PanelLED Status Condition FunctionAction Required LED #LED Color/ Status Description LED # Appendix a Flash Font Tables Replaceable Fonts TablesFactory Fonts Replaceable FontsCourier International Font Table Courier PC Line Graphic TableMonospace Font Table Rotated Font Table