
Pada form create kan file
declare out_file text_io.file_type;
out_file := TEXT_IO.FOPEN('C:\file.txt', 'w');
TEXT_IO.PUT_LINE(out_file, 'Text Untuk Dicetak');
TEXT_IO.FCLOSE(OUT_FILE);
host('C:\command', NO_SCREEN);
Pada drive C buat satu file command.dat
cd\
type file.txt > lpt1
jadi form akan terus print ke slip printer