输出到EXCEL打印时出错
local mjl(29)mid=id
COPY TO ARRAY mjl RECORD RECNO()
oExcel=CREATEOBJECT('Excel.application')
oExcel.Workbooks.Open("f:\tdz\cqh.xls")
oExcel.Worksheets("ba").Activate
FOR u=1 TO 29
oExcel.cells(1,u).value=mjl(u)
ENDFOR
oExcel.ActiveWorkbook.save
oExcel.Worksheet.printout
oExcel.Workbooks.CLOSE
oExcel.QUIT
RELEASE oExcel
输出到打印时出错,怎么回事?(我用是VFP9,EXCEL2003)