Datamax 7A300007 Rev. 2 manual Form FiestaTM

Page 46

Form FiestaTM

Form Fiesta is a Form and Label Generating Software that can be used to automate the label design process. It is provided to Datamax-O’Neil partners and customers at no charge. All supported commands are implemented in Form Fiesta and are automatically generated when an element is drawn onto the canvas on the screen. Developers can use Form Fiesta to generate a label and then copy the commands generated in the yellow section of the screen (these are the commands which render the image on the screen). The variable data can be acquired by the user’s application and replaced in the command string.

Example: The code below demonstrates how to implement this using a simple VB program. ‘CustomerName’ and ‘csCarModel’ are two variables which are substituted in the string.

Private Sub Command1_Click()

csTicket = Chr$(27) + "P$" + Chr$(27) + "PP" + vbCrLf + "BeginPage();" + vbCrLf csTicket = csTicket + "SetPageSize(400,200);" + vbCrLf

csTicket = csTicket + "DrawRectangle(30,0,330,40,1,0);" + vbCrLf

csTicket = csTicket + "DrawText(80,10,0,0,""<f=6><b>Dollar Rental"");" + vbCrLf csTicket = csTicket + "DrawText(30,60,1,0,""Customer"");" + vbCrLf

csTicket = csTicket + "DrawRectangle(140,50,330,90,1,3);" + vbCrLf

csTicket = csTicket + "DrawText(150,60,1,0,""" + CustomerName + """);" + vbCrLf csTicket = csTicket + "DrawText(30,110,1,0,""Model"");" + vbCrLf

csTicket = csTicket + "DrawRectangle(140,100,330,140,1,3);" + vbCrLf If Option1.Item(0) Then csCarModel = "Taurus"

If Option1.Item(1) Then csCarModel = "Cavalier" If Option1.Item(2) Then csCarModel = "Neon"

csTicket = csTicket + "DrawText(150,110,1,0,""" + csCarModel + """);" + vbCrLf csTicket = csTicket + "EndPage()" +vbCrLf+Chr$(27)+"P#" + vbCr+Chr$(4)+vbCrLf Ticket.TicketText = csTicket

Ticket.Visible = True MSComm1.CommPort = 1 MSComm1.PortOpen = True MSComm1.Output = csTicket + vbCrLf

MSComm1.PortOpen = False End Sub

The Form Fiesta installation program, as well as instructions for using the software, is available in the Developer’s CD.

40

Image 46
Contents Apex & Andes Series Page Copyrights Document Revision History Contents ’Neil Line Print mode Communications SettingsDip Switch Settings Datamax-O’Neil Printer Command Language ExPCL IntroductionXON CommunicationsEOT XoffCharacter Size and Line Spacing Select Character Pitch Mode ESC K n CRCharacter Sets Select Character Set Esc F nApex APEX4 Select Character Pitch Mode ESC k nAndes3 Character Size and Line Spacing Width and Height Selection U Underline Mode on u Underline Mode OFF Emphasized Printing Mode ESC U nUnderline Printing Mode ESC U n Character AttributesRight to Left and Left to Right Printing ESC F n Reverse Print ESC U nSelection R Reverse printing on n Reverse printing OFF Backspace Horizontal PositionCarriage ReturnCR Horizontal TabVariable Size Line Feed ESC J n Vertical PositionLine FeedLF Variable Size Reverse Line Feed ESC Q J nForm Feed Bar CodesSet Vertical Tab Height ESC T V n Set Form Feed Length in Dot Lines ESC T F n1 n2Code 39 Specifications Print Bar Code with Human Readable TextDescription Character set Elements per symbol Code 128 SpecificationsHEX DEC Code a Code B Code C UCC/EAN-128 Specifications DescriptionInterleaved 2 of 5 Specifications UPC/EAN/JAN SpecificationsSymbol Character density Codabar SpecificationsElements per GS1 DataBar Specifications Character set QR Code ModelsDecimal Page Page Page QR Code Specifications Symbol Character/symbol Error correctionSecurity Level # Error-Check Code Words Compaction Mode Description Encoding CapabilityElement Width Value Length in mil Barcode Height Multiplier ESC z h n GraphicsBit Graphics Graphic String Component Bit Compressed GraphicsFunction Printer Controls Data Processing Enable Buffer ModeDisable Buffer Mode Select Online Mode ESC P $ESC P + Printer Controls Printed Output AdjustPrint Buffer Contents Buffer Mode ESC PCan Printer Controls ResetPrinter Controls Power ESC @Extended Auto Power Down Command Command String Printer ResponseSTX Printer Status CommandsSYN Query Printer Model and Hardware Revision Level Magnetic Card Command String DescriptionMagnetic Card Reader Track Position Track2 Track3Magnetic Card Data Output Format Magnetic Card Read Error MessagesError # Interfacing to the Magnetic Card ReaderESC C Black Mark Sensing Control CommandsESC Q R CR Black Mark Sensing Command Mode Black Mark Sensing Auto ModePrinted Receipt/Label Presenter Positive Adjust ESC Q D + n Enable Back Black Mark Sensor ESC Q b e CRDisable Back Black Mark Sensor ESC Q b d CR Printed Receipt/Label Presenter Positive Adjust ESC Q P nEnter the Page Printing Mode Print Commands ConfigurationPrinted Receipt/Label Presenter Negative Adjust ESC Q D n ESC P PPrint Commands Draw Commands Command Name Draw Rectangle DrawRectangle x1, y1, x2, y2,color,widthType Value Barcode type HeightForm FiestaTM ESC D S Download Printer Default SetupESC S L ESC S Download Self test Message Hardware InformationStart Hardware Information download process Print Hardware Information ESC L gDownload Logo ESC D L CR LFESC D F CR Enable Font DownloadingDownload Fonts Display Tables InformationESC D I CR Disable Font Download ModeDisplay Font Download Current Settings ESC F S m t k f 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 CRSelect Emulation ESC E n ’Neil Line Print modeEmulation Emulation LanguageEsc C n Esc a n Can Esc V n1 n2 OFF Communications SettingsDip Switch Settings OFF 2USBSerial Busy Protocol RJ25 Connector PIN # Functional Description Signal NameSerial Communication RS232C XON/XOFF ProtocolUSB Communication USB RS232C Technical SpecificationsDip switch setting OverviewUSB Technical Specifications Bluetooth CommunicationsSoftware Driver Installation TeraTerm ExampleAutomatic Power OFF Mode Bluetooth Interface Power ModificationManual Power OFF Mode SettingsLED Wi-Fi Communication OptionPrinter Status Indicator LED Panel Status Condition FunctionLED Color/ Status Description LED # LED #Action Required Factory Fonts Appendix a Flash Font TablesReplaceable Fonts Tables Replaceable FontsCourier International Font Table Courier PC Line Graphic TableMonospace Font Table Rotated Font Table