主题:请教VFP中直接打印问题
先生你好,我搞了个布数的小程序,运行结果能在VFP的窗口中显示了,当我想把显示的结果在打印机中打出来时,为何要等退出VFP后才会打印,请指教,谢谢
程序是:
set device to print
set print on
CLEAR
SET TALK OFF
input '请输入一个整数:' to n
PUBLIC jshf(n,n)
FOR hbh = 1 TO n
FOR lbh = 1 TO n
jshf(hbh,lbh) = hbh*n+lbh-n
??jshf(hbh,lbh)
ENDFOR
?
?
ENDFOR
程序是:
set device to print
set print on
CLEAR
SET TALK OFF
input '请输入一个整数:' to n
PUBLIC jshf(n,n)
FOR hbh = 1 TO n
FOR lbh = 1 TO n
jshf(hbh,lbh) = hbh*n+lbh-n
??jshf(hbh,lbh)
ENDFOR
?
?
ENDFOR