ACCOUNT PRINTER CONFIG |
---|
Links on this Page Overview Edit Account Layout Print Formatting Standard Format Commands XTEND Graphics Commands |
Overview |
Account printing is used in a restaurant environment, where customers may have ordered multiple times during
the course of the meal, with waiters taking the orders either through SELLmatix POS or PocketPos running
on a Pocket PC. At the end of the evening, the customers call for the bill showing all the items ordered,
and then make payment which is processed on one of the POS terminals. In such cases, the total account for the sale is stored on SELLmatix Control, and a request to print the account can be made from any of the POS or PocketPos terminals. This request is sent to Control which prints the account on the designated printer. Typically the waiter then takes the account to the guests who present payment, goes to one of the POS terminals, retrieves the Sale from Control and processes the payment. Configuration information for SELLmatix Control is stored in the file "SELLmatix Control.cfg" which resides in the directory where your SELLmatix Data files are stored. This file is a Unicode text file which can be edited with a text editor such as Notepad. This file is similar in design to .ini files used by older versions of Windows and is made up of sections which are named with the name appearing on a line by itself, and enclosed in square brackets. For example, [System] In each section of this file there can be a number of entries which are made up of a "Keyword=" entry at the beginning of a line, followed by various data. The data which follows the "Keyword=" entry depends on the particular keyword. Lines in the configuration file which begin with a hash character"#", are considered comments and are ignored by SELLmatix POS. An excerpt from a pos.cfg file may look like this:- |
Edit Layout |
To change the layout of the account printed by SELLmatix Control, you will need to edit the relevant section
of the "SELLmatix Control.cfg" file using a text editor such as Notepad. An example showing the relevant
section is as follows:-
You will need to scroll down through the file to find the relevant section, which appears in the
[Ticket Printer] There are three parts of this section that you can modify to control the appearance of the accounts which are printed. These are the "Account Header, the "Account line" and the "Account Footer" entries. Each of these lines can optionally have 10 different lines, the first being shown with a numeric suffix, the additional lines with a numeric suffix from 1-9. These lines are processed in numeric order, but processing stops for that entry if a numeric suffix is not found. If for example, there is no line suffix for line 4, then lines with suffixes of 5-9 will not be processed even if they exist. Account Header entries are processed first when printing accounts. Account Line entries are processed for each line item on the sale. Account Footer entries are processed last. Data which appears to the right of the = (equals) sign in the entry consist of a combination of the following:-
|
Print Formatting |
The capability of printers used in Point of Sale systems varies very widely. Some printers can print only a one single pitch font and have formatting
capabilities no greater than performing a carriage return and line feed. Others can print photo quality graphics. In addition to the capabilities
the print quality varies very widely. Many formatting commands available in SELLmatix, are not available on some printers. Where possible, SELLmatix tries to emulate functions if they are not available on the printer you are using. The SELLmatix samples are designed to produce "acceptable" output on as wide a range of printers as possible, but they are not optimised for any particular device. There is a very good chance that you can greatly improve the appearance of your accounts and receipts by refining and testing different formatting options. There are two basic types of printer which can be used. One type uses raw output from SELLmatix that directly controls the printer. Standard commands only are able to be used for these printers. The other type of printer uses a Windows driver. These printers can use the standard commands as well as the "XTEND"ed formatting commands. Given the choice, always use Windows printer drivers if they are available, even if the device does not have many graphics capabilities. At the very least, this will allow you to share that printer and have it used by other terminals. |
Standard Format Commands |
<BEEP> Command The <BEEP> command sounds the buzzer on the device.
<BR> Command
<B> and </B> Commands
<HALFCUT> Command
<FULLCUT> Command
<INVERT> and </INVERT> Commands
<I> and </I> Commands
<U> and </U> Commands
<CENTER> and </CENTER> Commands
<RIGHT> and </RIGHT> Commands
<RESET> Command |
XTEND Graphics Commands |
There are a number of eXTENDed graphics commands which can be used to output to devices such
as ticket printers which operate using Windows Drivers. These features are not available on
other devices unless special raw drivers are created. Not all printers that use Windows Drivers support these graphics functions. In particular, devices that use the Generic/Text Only drivers do not support these features. If a feature is not supported by the Windows driver, then output is not generated for that feature. When printing to a normal Windows printer, the software is able to interrogate the Windows printer driver to determine the width and height of the paper, because the page size is known. Scaling can then take place in the software. With receipt printers however, which operate on a roll of paper, the page length is unknown to the software, and so normal measurements do not work, particularly in the Y axis. For example, an image that prints at the bottom of a receipt will always print a known distance from the top of the page on a page printer, but on a receipt printer the distance from the top of the page depends on how many items are purchased on the sale. In order to handle this issue in as device independent a manner as possible, SELLmatix POS treats all coordinates as being a percentage of the printable width of the device. Hence, an X coordinate of 25 means 25% of the printable width of the printer from the left hand side, and a Y coordinate of 67 means a location down the page equal to 67% of the printable width. The printable width is calculated at the time the printing takes place. Not all Windows printer drivers are equal, so some fine tuning may be required to suit a particular printer. Graphics that look great on some printers are horrible on others. eXTENDed print commands are listed in the table below. To see a sample of the function output, hover over it's link with the mouse. For more information on the command, click on it's link.
|