回复 22楼 杂七杂八
可以
ASTACKINFO(a程序)
cPath = ADDBS(JUSTPATH(a程序[2]))
SET DEFAULT TO (cPath)
SET SAFETY OFF
COPY FILE a123.xls TO b123.xls
oExcel = CREATEOBJECT("Excel.Application")
oExcel.DisplayAlerts = .F.
oExcel.WorkBooks.Open(cPath+"b123.xls")
USE a123
nColCount = FCOUNT()
SCAN
FOR nCol=1 TO nColCount
oExcel.Cells[RECNO()+1,nCol].Value = EVALUATE(FIELD(nCol))
ENDFOR
ENDSCAN
oExcel.ActiveWorkbook.Save
IF MESSAGEBOX("完成数据转换导出,要打开吗?",1+256,'提示')==1
oExcel.Visible = .T.
RETURN
ENDIF
oExcel.Workbooks.Close
oExcel.Quit
Release oExcel