METHOD ToExcel() need Excel
did Fivewin already have a Function to use ADO to "create" a XLSx SheetMsgAlert( FWString( "Excel not installed" ), FWString( "Alert" ) )

---
Idea

it seem function FW_OpenADOExcelBook( cFile, lHeaders ) return a "Connection" so after create Structure
Code: Select all | Expand
CREATE TABLE XXX ( ...
Code: Select all | Expand
oRs := FW_OpenRecordSet( oCn, "XXX" )
USE CUSTOMER NEW ALIAS CUST SHARED READONLY VIA 'DBFCDX'
do while ! eof()
oRs:AddNew( { "CUSTNAME", "MARRIED", "AGE", "SALARY" }, ;
{ Left( Trim( CUST->FIRST ) + ' ' + Trim( CUST->LAST ), 30 ), ;
CUST->MARRIED, CUST->AGE, CUST->SALARY } )
SKIP
enddo
CLOSE CUST
oRs:Close()
