CREATE CURSOR tmp (xh i,sj c(10))
cbg=ASC('啊')-1
FOR i=1 TO 93
APPEND BLANK
REPLACE xh WITH i,sj WITH CHR(cbg+i)
endfor
orsxl=CREATEOBJECT('excel.application')
orsxl.Visible=.t.
orsxl.Application.WorkBooks.add
FOR i=1 TO RECCOUNT()
GO i
orsxl.cells(i,1).value=xh
orsxl.cells(i,2).value=sj
ENDFOR
yms=INT(RECCOUNT()/30)
FOR i=1 TO yms
orsxl.Rows(i*30+1).PageBreak=1
&&&这一行
endfor