Con Visual FoxPro, para exportar un fichero o cursor a XLS se usa:
Con un fichero:
SELECT condiciones COPY TO "c:\temp\xxx.xls" TYPE XL5
Con un cursor:
SELECT * FROM condiciones INTO CURSOR _CUR1 COPY TO "c:\temp\xxx.xls" TYPE XL5
Con Windev 24, para exportar un fichero u cursor a XLS o XLSX se usa:
Con un fichero:
HExportXLS(condiciones,"c:\temp\xxx.xlsx",hExpCreation)
Con un cursor (Data Source):
x is Data Source HExecuteSQLQuery(x, MyConnection2,hQueryWithoutCorrection,"select * from condiciones") HExportXLS(x,"c:\temp\xxx.xlsx",hExpCreation)