Introduction of Layout Utilities Layout Utilities is software development tool which makes so easy to print rich content receipt with imported data by your program. Example of an inserted printing. 1 Structure of Layout Utilities The Layout Utilities consists of 3 tools around which the layout file is positioned on the center. 『Layout Editor 』 Editting tool 『Layout File Manager 』 Management tool Create and edit printing layout. Manage completed layout files. Display file list and thumbnail. Layout file The file defines a location and style of inserted Texts, images and barcode data. POS application 『Layout Print Engine 』 Printing tool It imports data into completed layout. You can implement it to your program. Only external application interface, no GUI. 2 Advantage of Layout Utilities(1/3) Satisfying your customer’s request more easily. ・Conventional case A receipt or others POS Application Printer / OPOS command or others A Corp Different layout requests Essential to cording for each customer. B Corp C Corp ・Layout Utilities’s case POS Application No need to change. Only prepare for importing data. A Corp Layout Print Engine Layout Editor Layout files Only by replacing layout files, it is possible to meet your customer’s request. As image data like logo is included in the layout file, there is no need to copy image data files to POS terminals. Data source file management is much easier. 3 Advantage of Layout Utilities (2/3) Easier to create printing programs. Eliminate your coding job dramatically. You can print nice layout receipt from your program by leaning/implementing ONLY 10 methods (commands) of Layout Utilities. No need of learning huge number of printer commands or high level knowledge about complicated printing on Windows. For your reference CT-S310II has more than 100 commands Note : unique functions of each printer cannot be utilized by the Layout Utilities. Refer to your user's guide for the detail of commands(methods). 4 Advantage of Layout Utilities(3/3) Easy to print diversely You can use the various fonts available on your Windows PC. Use it like MS-Office software. No need of engineering support. Vertical layout and horizontal layout can be mixed on one receipt.. You can put diagrams, some barcodes and images on the screen. The data on the screen is printed as it is shown. Layout Editor’s screen 5 Development with Layout Utilities 1. Divide the printed data structure. 2. Create layout file. Expected Receipt image Logo Statement Repeated statement Total 3. Use it form a program 6 Layout Utilities Programing Sample (details) Print from a program ex) From VB6 code, revise one point and print.- ' ------------------------------------------------------------------------------------- --- Preparation --Set comObj = CreateObject("Citizen.LayoutUtilities.Printing.Controller") [01] Create an object. result = comObj.Open(“Layout file’s name”) [02] Open a designated layout file. Call comObj.BeginPrint [03] Initialize an object. ' ------------------------------------------------------------------------------------frameIndex = comObj.InitFrame("Frame2") --- Amend Text 1 of Frame2, add it to a printing area. --[04] Copy an designated frame in the work area in the object. Get index. partsIndex = comObj.GetParts(frameIndex, "Text1") [05] Get an index of a an designated part in the designated frame. result = comObj.SetPartsData(frameIndex, partsIndex, “Changed character’s line) [06] Change the work area in the object. [07] Copy the work area in the object to the printing area. result = comObj.AddFrame(frameIndex) 10 methods (commandes) ' ------------------------------------------------------------------------------------result = comObj.DoPrint(“printer’s name”) --- Print data in the printing area --[08] Start printing with the designated printer. In case a printer’s name is blank, “OS default printer” is displayed. ' ------------------------------------------------------------------------------------Call comObj.EndPrint DoPreview for the preview display --- completed --[09] Discard the work area in the object. Call comObj.Close [10] Clear all the area in the object.. 7 Layout Utilities Operation Environment ■ OS Windows XP Windows Vista Windows 7 Windows 8 Windows 8.1 ■PC CPU : Pentium 1.0 GHz or faster, higher than the spec required by your OS. Memory : More than 1GB, more than the spec required by your OS. HDD : Installed HDD, more than 10MB of free disk space. Monitor : Resolution more than 1024x768e, High Color more than (16bit) Software : .NET Framework 2.0(SP1/SP2)、3.0(SP1/SP2)、3.5(No SP /SP1) 8 Introduction of Layout Utilities Xin cảm ơn! 9