This is a very simple sample of printing the values of a table in progress…

OUTPUT TO PRINTER.

FOR EACH pessoa
NO-LOCK:
DISPLAY pessoa.nome
pessoa.idade.
END.

OUTPUT CLOSE.

see u…