Paxar 6015 Printer User Manual


 
15
SAMPLE DATA STREAM
How you send the data stream to the printer is dependent on the
language your application is written in. For example, the following data
stream (consisting of several strings that the application writes to the
printer) makes use of C notations for carriage returns (\r), new lines (\n),
and the C method for representing hex numbers (x06, for example).
The data stream prints the label on the right.
"\x1bP#\r\n\r\n" \
" Paxar/Monarch\n" \
" 170 Monarch Ln.\n" \
" Miamisburg, OH 45342\n" \
" Phone: (937) 865-2123\r\n\r\n" \
" SALES RECEIPT\r\n\r\n" \
" Description Qty. Total\n" \
" 1. Monarch 9490 5 3495\n" \
" 2. Monarch 9403 4 995\n" \
" 3. Monarch 6035 3 4995\n" \
" 4. Monarch 6030 2 2995\n" \
" 5. Monarch 9450 1 995\n" \
" -----\n" \
" Total 13475\r\n\r\n"
\
" AMEX 37xyz55xx315001\n" \
" Exp. Date 10/01\r\n\r\n\r\n" \
" \x1bz1\x06\x64" \
"123456\n\x0c"
4