set device to printer
set print on
go top k=0
DO WHILE NOT EOF( ) @ Prow(),0 SAY tt.成绩表单 k=k+1 SKIP IF mod(k,40)=0 EJECT ENDIF ENDDO
set print off
set device to screen
DO WHILE NOT EOF( ) @ Prow(),0 SAY tt.成绩表单 k=k+1 SKIP IF mod(k,40)=0 EJECT ENDIF
ENDDO
EJECT &&最后一页不满40个记录,多加加一个走纸命令,让最后一页走完。
set print off
set device to screen