*-------------------------------------------------------- * Example *-------------------------------------------------------- */DT/ Sends the file to the POS printer lparameters lcFileName if file(lcFileName) local lcLine, lnCount, lnReceiptFooter lnReceiptFooter = 5 dimension laLines(1) if alines(laLines, filetostr(lcFileName)) > 0 lnCount = alen(laLines, 1) */DT/ Delete empty lines at the bottom of the report lcLine = laLines(lnCount) do while empty(lcLine) lnCount = max(1, lnCount - 1) lcLine = laLines(lnCount) enddo dimension laLines(lnCount + 1, 1) */DT/ Sends each line to the printer this.printerinit && <-- OPOS or serial for lnCount = 1 to alen(laLines, 1) this.printerlineprint(laLines(lnCount)) && <-- This is our own print method (either OPOS or Serial) endfor this.printerlinefeed(lnReceiptFooter) && <-- OPOS or serial this.printercutpaper && <-- OPOS or serial endif else devalert([Cant' locate file] + ' ' + lcFileName) endif