>thanks for all the good advise.
>
>I store all the receipts in computer so the cashier doesn't have to use 2-ply receipt, it's normal in POS business, the cashier has to keep all the copy of the receipts.
>
>regards,
>
>Jerry
If I understand your problem correctly, you want to print the receipt and at the same time generate a copy which you can store in a memo field.
I tend to think that isn't necessary as long as you can regenerate the print image from the data in the file.
However, you know your requirements better than I so..........
The following old fashioned approach may not be best, but it should work well and mean little change to the code which prints the receipt.
........ main body of code .........
SET ALTE TO receipt
SET ALTE ON
SET ALTE TO
REPLACE myMemoField WITH FILETOSTR('receipt.txt')