https://bbs.pinggu.org/thread-2967329-1-1.html中有回复,我引用一下:
'2007-12-03 22:42
'automatic printing, and redirect output to rtf file
%wf = @evpath + "\Example Files\data\demo"
wfopen %wf 'open the workfile
output(r,c) testout 'send all outputs to rtf, with command logging
pon 'Turn on automatic printing
'some table or graph views
pr.stats 'statistics of price index
rs.line 'short term interest rates
poff 'Turn off automatic printing
output off 'turns off output redirection
请参考上面的语句,符号 ' 后面的是注释哦请保存成后缀为prg的文件运行