SATFILTER Examples
S@
Home SATGUI SATSHELL SATFORM SATFILTER SATREPORT SATMYSQL License Download Examples Contact

An "Invoice" letter. This example uses bold/italic attributes. Font style and size. Special character. Positioning text. Positioning numbers using right justification. Box drawing.

Sample Output

Example SAT/ML

Assume a file called invoice in the "current" directory with the following contents:

<@ 0:5>
<indent 8>
<box>
(----------------------)
|                      |
|                      |
|                      |
|                      |
|                      |
|                      |
|                      |
[----------------------]





(-----------:---------------------------------------:------------)
|           |                                       |            |
,-----------+---------------------------------------+------------.
<repeat 20:|           |                                       |            |>
[-----------;---------------------------------------+------------.
                                                    |            |
                                                    |            |
                                                    |            |
                                                    [------------]
</box>
<@ 0:0>
<font univers:20>
<b>INVOICE</b><size 12>
<indent 10>





Mr Fred Smith <@ 50><b>Invoice:</b><@ 60>00123
49 Greenfield Street
River City<@ 50><b>Customer:</b><@ 60>FS001

<@ 50><b>Date:</b><@ 60>01/02/2001








<b>Code<@ 22>Description<@ 62>Price (!L:)</b>

020034<@ 22>Small widget with flange<$ 68:102.47>
097762<@ 22>Size 4 bolt<$ 68:1.98>
002157<@ 22>Washer for small widget<$ 68:2.40>
<@ 8:47>This invoice <i>must</i> be paid within 30 days.
Printing The Example

Assume the printer to be used is called printer1. The following command will print the "Invoice" letter.

cat invoice | satfilter | lp -dprinter1 -onobanner
The invoice file can contain many letters. Each letter must be separated by either a "formfeed" character -or- the <p> tag.


Copyright © 2003 Adrian Davis.